Sha256: 41d8dc896c47df7ecab4261f87c6a8f768d53c43ac00e3fbd97bea080d703141

Contents?: true

Size: 698 Bytes

Versions: 3

Compression:

Stored size: 698 Bytes

Contents

rspec_filter 'have_attributes' do
  # https://github.com/opal/opal/pull/1136 - operators and method missing issues with a_value > < etc
  unless at_least_opal_0_9?
    filter('#have_attributes matcher expect(...).to have_attributes(with_one_attribute) expect(...).to have_attributes(key => matcher) fails with a clear message when the matcher does not match')
    filter('#have_attributes matcher expect(...).to have_attributes(with_one_attribute) expect(...).to have_attributes(key => matcher) provides a description')
    filter('#have_attributes matcher expect(...).to have_attributes(with_one_attribute) expect(...).to have_attributes(key => matcher) passes when the matchers match')
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
opal-connect-rspec-0.5.0 spec/rspec/expectations/filter/bugs/have_attributes.rb
opal-rspec-0.5.0 spec/rspec/expectations/filter/bugs/have_attributes.rb
opal-rspec-0.5.0.beta3 spec/rspec/expectations/filter/bugs/have_attributes.rb