diff options
author | goobertron <gooberfox@fastmail.co.uk> | 2015-03-08 18:15:54 +0300 |
---|---|---|
committer | goobertron <gooberfox@fastmail.co.uk> | 2015-03-14 17:50:35 +0300 |
commit | 2b6ca180ceac803b2393bcac7624e489433509e6 (patch) | |
tree | ca8be9539a677fc8f9151dcbccae707b21bacc26 /features/step_definitions/stream_steps.rb | |
parent | 2328f64d562eb852143300b47786f2978c99cac7 (diff) |
Add tests for liking and unliking posts
Diffstat (limited to 'features/step_definitions/stream_steps.rb')
-rw-r--r-- | features/step_definitions/stream_steps.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/features/step_definitions/stream_steps.rb b/features/step_definitions/stream_steps.rb index 557e224ab..901f4da3d 100644 --- a/features/step_definitions/stream_steps.rb +++ b/features/step_definitions/stream_steps.rb @@ -1,5 +1,5 @@ -Then /^I like the post "([^"]*)"$/ do |post_text| - like_post(post_text) +When /^I (?:like|unlike) the post "([^"]*)" in the stream$/ do |post_text| + like_stream_post(post_text) end Then /^"([^"]*)" should be post (\d+)$/ do |post_text, position| |