Fix specs for new single post view.

This commit is contained in:
Roger Braun 2013-08-17 14:42:12 +02:00
parent 8c695ecec2
commit d7aaaea86e
2 changed files with 3 additions and 4 deletions

View file

@ -55,6 +55,6 @@ Feature: commenting
When I follow "less than a minute ago"
Then I should see "Look at this dog"
And I make a show page comment "I think thats a cat"
Then I should see "less than a minute ago" within "#post-comments"
Then I should see "less than a minute ago" within "#comments"
When I go to "alice@alice.alice"'s page
Then I should see "I think thats a cat"

View file

@ -80,9 +80,8 @@ module PublishingCukeHelpers
end
def comment_on_show_page(comment_text)
within("#post-interactions") do
focus_comment_box(".label.comment")
make_comment(comment_text, "new-comment-text")
within("#single-post-interactions") do
make_comment(comment_text)
end
end