fix failing cuke - blocking from profile page

This commit is contained in:
Florian Staudacher 2013-08-28 12:51:39 +02:00 committed by Jonne Haß
parent 5223a2d906
commit 5ff05139a3
2 changed files with 5 additions and 1 deletions

View file

@ -20,7 +20,7 @@ Feature: Blocking a user from the stream
Scenario: Blocking a user from the profile page
When I am on the home page
And I follow "Alice Smith"
When I click on the first block button
When I click on the profile block button
And I confirm the alert
And I am on the home page
Then I should not see any posts in my stream

View file

@ -39,6 +39,10 @@ When /^I click on the first block button/ do
find(".block_user").click
end
When /^I click on the profile block button/ do
find("#profile_buttons .block_user").click
end
When /^I expand the post$/ do
expand_first_post
end