mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00

* Move spec/shoulda to spec/unit_tests/shoulda * Move spec/support/*.rb to spec/support/unit_tests/{helpers,matchers} * Move spec_helper.rb to unit_spec_helper.rb
17 lines
553 B
Ruby
17 lines
553 B
Ruby
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
|