Sha256: eb51b3883504c36368dfdf2ddfb7cafa369ad72fe7da82fc1fd77033fdd94bbf

Contents?: true

Size: 392 Bytes

Versions: 32

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

module CommentsHelpers
  def have_comment_from(user, text)
    within "#comments" do
      have_content(user.name) && have_content(text)
    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: :feature
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
decidim-dev-0.8.4 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.8.3 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.8.2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.8.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.8.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.7.4 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.7.3 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.7.2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.7.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.7.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.6.8 lib/decidim/dev/test/rspec_support/comments.rb
decidim-0.6.8 decidim-dev/lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.6.7 lib/decidim/dev/test/rspec_support/comments.rb
decidim-0.6.7 decidim-dev/lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.6.6 lib/decidim/dev/test/rspec_support/comments.rb
decidim-0.6.6 decidim-dev/lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.6.5 lib/decidim/dev/test/rspec_support/comments.rb
decidim-0.6.5 decidim-dev/lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.6.4 lib/decidim/dev/test/rspec_support/comments.rb
decidim-0.6.4 decidim-dev/lib/decidim/dev/test/rspec_support/comments.rb