derp; find always returns the first element in capybara

This commit is contained in:
Maxwell Salzberg 2012-05-07 18:56:30 -07:00
parent 4b363548a2
commit 4c7e82fec9

View file

@ -154,5 +154,5 @@ When /^I click the "([^"]*)" post$/ do |post_text|
end
Then /^"([^"]*)" should be the first canvas frame$/ do |post_text|
find(".canvas-frame:first").should have_content(post_text)
end
find(".canvas-frame").should have_content(post_text)
end