Sha256: 5d81fd372f400afb3315a4f650d7261a12f0e35ca1f87c0095d0e02379ae0196
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
require 'spec_helper' shared_examples 'a numerical submatcher' do it 'implements the with_message method' do subject.should respond_to(:with_message).with(1).arguments end it 'implements the allowed_types method' do subject.should respond_to(:allowed_types).with(0).arguments end it 'implements the matches? method' do subject.should respond_to(:matches?).with(1).arguments end it 'implements the failure_message method' do subject.should respond_to(:failure_message).with(0).arguments end it 'implements the failure_message_when_negated method' do subject.should respond_to(:failure_message_when_negated).with(0).arguments end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoulda-matchers-2.5.0 | spec/support/shared_examples/numerical_submatcher_spec.rb |