Sha256: f2e5266a3f6702105c816fd5737e3ad5b593044b87b70cc4615f09fdb4c8f867

Contents?: true

Size: 343 Bytes

Versions: 6

Compression:

Stored size: 343 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module CellMatchers
    RSpec::Matchers.define :render_nothing do |_expected_value|
      match do |actual_value|
        expect(actual_value).to have_no_css("html")
      end

      diffable
    end
  end
end

RSpec.configure do |config|
  config.include Decidim::CellMatchers, type: :cell
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-dev-0.29.1 lib/decidim/dev/test/rspec_support/cell_matchers.rb
decidim-dev-0.29.0 lib/decidim/dev/test/rspec_support/cell_matchers.rb
decidim-dev-0.29.0.rc4 lib/decidim/dev/test/rspec_support/cell_matchers.rb
decidim-dev-0.29.0.rc3 lib/decidim/dev/test/rspec_support/cell_matchers.rb
decidim-dev-0.29.0.rc2 lib/decidim/dev/test/rspec_support/cell_matchers.rb
decidim-dev-0.29.0.rc1 lib/decidim/dev/test/rspec_support/cell_matchers.rb