diff options
author | Dan Hansen <mokker1234@gmail.com> | 2011-11-02 02:00:37 +0400 |
---|---|---|
committer | danielgrippi <danielgrippi@gmail.com> | 2011-11-03 23:31:24 +0400 |
commit | 16e76886d968256159a3082973d6cf9103cc7064 (patch) | |
tree | 4323dba686d3ecd87ace4376e4842c4a28cb0ab6 /features | |
parent | 609894fb705ce174cd3d8f08252b49071c5c2017 (diff) |
wip
Diffstat (limited to 'features')
-rw-r--r-- | features/blocks_user.feature | 20 | ||||
-rw-r--r-- | features/step_definitions/posts_steps.rb | 4 |
2 files changed, 24 insertions, 0 deletions
diff --git a/features/blocks_user.feature b/features/blocks_user.feature new file mode 100644 index 000000000..fd47a4f93 --- /dev/null +++ b/features/blocks_user.feature @@ -0,0 +1,20 @@ +@javascript +Feature: Blocking a user from the stream + Background: + Given a user with username "bob" + And a user with username "alice" + And a user with username "alice" is connected with "bob" + + When I sign in as "bob@bob.bob" + And I post a status with the text "I am da #boss" + And I am on the home page + When I go to the destroy user session page + + + Scenario: Blocking a user + When I sign in as "alice@alice.alice" + And I am on the home page + Then I should see "I am da #boss" + When I click on bob's block button + And I am on the home page + Then I should not see "I am da #boss"
\ No newline at end of file diff --git a/features/step_definitions/posts_steps.rb b/features/step_definitions/posts_steps.rb index 5bd2ff50a..bdf830c8a 100644 --- a/features/step_definitions/posts_steps.rb +++ b/features/step_definitions/posts_steps.rb @@ -26,3 +26,7 @@ end When /^The user deletes their first post$/ do @me.posts.first.destroy end + +When /^I click on bob's block button/ do + find(".block_button").first.click +end
\ No newline at end of file |