Commit 0392dffd authored by Alfredo Sumaran's avatar Alfredo Sumaran

Update wording

parent 89df29e0
...@@ -43,7 +43,7 @@ $ git checkout origin/merge-requests/1 ...@@ -43,7 +43,7 @@ $ git checkout origin/merge-requests/1
![MR diff](merge_requests/merge_request_diff.png) ![MR diff](merge_requests/merge_request_diff.png)
If you click to "Hide whitespace changes" button, you can see diff without whitespace changes. If you click the "Hide whitespace changes" button, you can see the diff without whitespace changes.
![MR diff without whitespace](merge_requests/merge_request_diff_without_whitespace.png) ![MR diff without whitespace](merge_requests/merge_request_diff_without_whitespace.png)
......
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
visit diffs_namespace_project_merge_request_path(project.namespace, project, merge_request) visit diffs_namespace_project_merge_request_path(project.namespace, project, merge_request)
end end
it 'should have a button to toggle whitespace changes' do it 'has a button to toggle whitespace changes' do
expect(page).to have_content "Hide whitespace changes" expect(page).to have_content "Hide whitespace changes"
end end
describe 'clicking "Hide whitespace changes" button' do describe 'clicking "Hide whitespace changes" button' do
it 'should hide whitespace changes' do it 'toggles the "Hide whitespace changes" button' do
click_link "Hide whitespace changes" click_link "Hide whitespace changes"
expect(page).to have_content "Show whitespace changes" expect(page).to have_content "Show whitespace changes"
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment