Module: CommentsHelpers
- Defined in:
- lib/decidim/dev/test/rspec_support/comments.rb
Instance Method Summary collapse
Instance Method Details
#have_comment_from(user, text, opts = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/decidim/dev/test/rspec_support/comments.rb', line 4 def have_comment_from(user, text, opts = {}) within "#comments" do have_content(user.name, **opts) && have_content(text, **opts) end end |
#have_reply_to(comment, text) ⇒ Object
10 11 12 13 14 |
# File 'lib/decidim/dev/test/rspec_support/comments.rb', line 10 def have_reply_to(comment, text) within "#comments #comment_#{comment.id}" do have_content(text) end end |