Use click_link

This commit is contained in:
Alfredo Sumaran 2016-04-07 12:52:54 -05:00
parent 5d5df26ab1
commit 89df29e09f

View file

@ -15,7 +15,7 @@ feature 'Toggle Whitespace Changes', js: true, feature: true do
describe 'clicking "Hide whitespace changes" button' do
it 'should hide whitespace changes' do
find('a', text: "Hide whitespace changes").click
click_link "Hide whitespace changes"
expect(page).to have_content "Show whitespace changes"
end
end