diff --git a/features/support/publishing_cuke_helpers.rb b/features/support/publishing_cuke_helpers.rb index d9a17b98cc0c8ba67231b5d793e905f6799f115c..a6e0593ffe61eac519b6e051c2dec2fbafecbee3 100644 --- a/features/support/publishing_cuke_helpers.rb +++ b/features/support/publishing_cuke_helpers.rb @@ -95,7 +95,9 @@ module PublishingCukeHelpers def like_stream_post(post_text) within_post(post_text) do - find(:css, 'a.like').click + action = find(:css, "a.like").text + find(:css, "a.like").click + expect(find(:css, "a.like")).not_to have_text(action) end end