Fix delete a photo cuke

This commit is contained in:
Steffen van Bergerem 2014-12-02 23:56:54 +01:00
parent 7c775208b1
commit 9a047749fc
2 changed files with 2 additions and 2 deletions

View file

@ -31,6 +31,6 @@ Feature: show photos
When I am on "robert@grimm.grimm"'s photos page
And I delete a photo
And I confirm the alert
Then I should not see ".deleting" within ".stream"
Then I should not see a ".stream"
When I am on "robert@grimm.grimm"'s page
Then I should not see "Photos" within "#profile_horizontal_bar"

View file

@ -160,7 +160,7 @@ end
Then /^(?:|I )should not see a "([^\"]*)"(?: within "([^\"]*)")?$/ do |selector, scope_selector|
with_scope(scope_selector) do
current_scope.has_css?(selector, :visible => true).should be false
current_scope.should have_no_css(selector, :visible => true)
end
end