We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96f1a40 commit 63d73dfCopy full SHA for 63d73df
features/like_post.feature
@@ -0,0 +1,12 @@
1
+Feature: Like post
2
+In order for users to show their appreciation for other users' posts
3
+A user must be able to like a post
4
+
5
+Scenario: Like post
6
+Given I am logged in
7
+And a group is created
8
+And a discussion is created
9
+And I am on the discussion page
10
+And a comment is added to the discussion
11
+When I click the like button on a post
12
+Then a post is liked
features/step_definitions/like_post_steps.rb
@@ -0,0 +1,7 @@
+When /^I click the like button on a post$/ do
+ click_link 'Like'
+end
+Then /^a post is liked$/ do
+ page.should have_content('Liked by ' + User.last.name)
0 commit comments