Sha256: 30fa1f226ee27aa34755cb6275a40570eb89cb3d8c97e077badd40ac12090048
Contents?: true
Size: 418 Bytes
Versions: 27
Compression:
Stored size: 418 Bytes
Contents
# frozen_string_literal: true module CommentsHelpers def have_comment_from(user, text, opts = {}) within "#comments" do have_content(user.name, **opts) && have_content(text, **opts) end end def have_reply_to(comment, text) within "#comments #comment_#{comment.id}" do have_content(text) end end end RSpec.configure do |config| config.include CommentsHelpers, type: :system end
Version data entries
27 entries across 27 versions & 1 rubygems