module CommentsHelpers
Public Instance Methods
have_comment_from(user, text, opts = {})
click to toggle source
# 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)
click to toggle source
# 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