Skip to content

Commit

Permalink
Fix Capybara ambiguities
Browse files Browse the repository at this point in the history
  • Loading branch information
pezholio committed Jul 3, 2013
1 parent 22d93d1 commit 07063c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
end

Then(/^when I click on that item$/) do
page.click_link(@resource_name)
page.first(:link, @resource_name).click
end

Then(/^I should see it has a description "(.*?)"$/) do |description|
Expand All @@ -57,7 +57,7 @@
Then(/^I should see the changed description$/) do
visit('/')
page.should have_content @resource_name
page.click_link(@resource_name)
page.first(:link, @resource_name).click
end

Given(/^there is no longer a resource with the id "(.*?)" and the name "(.*?)" in Google Apps$/) do |id, name|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Given(/^I visit the page for that resource$/) do
visit('/')
page.click_link(@resource_name)
page.first(:link, @resource_name).click
end

Given(/^I navigate to the correct month$/) do
Expand Down

0 comments on commit 07063c1

Please sign in to comment.