Sha256: 32d7ac5ab6e33023281149898555f8fe43d75be2cc790d06a7ad402026663fbb

Contents?: true

Size: 553 Bytes

Versions: 12

Compression:

Stored size: 553 Bytes

Contents

shared_examples 'a numerical submatcher' do
  it 'implements the with_message method' do
    expect(subject).to respond_to(:with_message).with(1).arguments
  end

  it 'implements the matches? method' do
    expect(subject).to respond_to(:matches?).with(1).arguments
  end

  it 'implements the failure_message method' do
    expect(subject).to respond_to(:failure_message).with(0).arguments
  end

  it 'implements the failure_message_when_negated method' do
    expect(subject).to respond_to(:failure_message_when_negated).with(0).arguments
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
shoulda-matchers-3.1.3 spec/support/unit/shared_examples/numerical_submatcher.rb
shoulda-matchers-4.0.0.rc1 spec/support/unit/shared_examples/numerical_submatcher.rb
shoulda-matchers-3.1.2 spec/support/unit/shared_examples/numerical_submatcher.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/shoulda-matchers-2.8.0/spec/support/unit/shared_examples/numerical_submatcher.rb
shoulda-matchers-3.1.1 spec/support/unit/shared_examples/numerical_submatcher.rb
shoulda-matchers-3.1.0 spec/support/unit/shared_examples/numerical_submatcher.rb
shoulda-matchers-3.0.1 spec/support/unit/shared_examples/numerical_submatcher.rb
shoulda-matchers-3.0.0 spec/support/unit/shared_examples/numerical_submatcher.rb
shoulda-matchers-3.0.0.rc1 spec/support/unit/shared_examples/numerical_submatcher.rb
shoulda-matchers-2.8.0 spec/support/unit/shared_examples/numerical_submatcher.rb
shoulda-matchers-2.8.0.rc2 spec/support/unit/shared_examples/numerical_submatcher.rb
shoulda-matchers-2.8.0.rc1 spec/support/unit/shared_examples/numerical_submatcher.rb