Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Hansen <mokker1234@gmail.com>2011-11-02 02:00:37 +0400
committerdanielgrippi <danielgrippi@gmail.com>2011-11-03 23:31:24 +0400
commit16e76886d968256159a3082973d6cf9103cc7064 (patch)
tree4323dba686d3ecd87ace4376e4842c4a28cb0ab6 /features
parent609894fb705ce174cd3d8f08252b49071c5c2017 (diff)
wip
Diffstat (limited to 'features')
-rw-r--r--features/blocks_user.feature20
-rw-r--r--features/step_definitions/posts_steps.rb4
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