Sha256: f7546c34025bc4ea27fde827354f9aa6bfe2757af0f992234b99177897587691
Contents?: true
Size: 462 Bytes
Versions: 3
Compression:
Stored size: 462 Bytes
Contents
RSpec::Matchers.define :have_an_interval do |interval_description, expected_note_string| match do |note| note.send(interval_description).note_string == expected_note_string end failure_message_for_should do |note| "Expected #{note.note_string}'s #{interval_description} interval to be #{expected_note_string}" end description do |note| "have an #{interval_description} interval of #{expected_note_string} for #{note.note_string}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
music-0.7.0 | spec/support/matchers/have_an_interval.rb |
music-0.6.2 | spec/support/matchers/have_an_interval.rb |
music-0.6.1 | spec/support/matchers/have_an_interval.rb |