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:
Diffstat (limited to 'features/step_definitions/posts_steps.rb')
-rw-r--r--features/step_definitions/posts_steps.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/features/step_definitions/posts_steps.rb b/features/step_definitions/posts_steps.rb
index 6e3661333..d9879e72a 100644
--- a/features/step_definitions/posts_steps.rb
+++ b/features/step_definitions/posts_steps.rb
@@ -13,3 +13,9 @@ Given /^"([^"]*)" has a public post with text "([^"]*)"$/ do |email, text|
user = User.find_by_email(email)
user.post(:status_message, :text => text, :public => true, :to => user.aspects)
end
+
+Given /^"([^"]*)" has a non public post with text "([^"]*)"$/ do |email, text|
+ user = User.find_by_email(email)
+ user.post(:status_message, :text => text, :public => false, :to => user.aspects)
+end
+