Sha256: 522e471b6bad98f8a8c428ba57c14a86a074f46e8f4feb004667b3f833b87b82
Contents?: true
Size: 618 Bytes
Versions: 1
Compression:
Stored size: 618 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Link do context '.new' do its(:relationship) { should eq(Link::RELATIONSHIP_NONE) } its(:target_pitch) { should eq(Pitch.new) } end it 'should assign the given relationship' do Link::RELATIONSHIPS.each do |relationship| link = Link.new(:relationship => relationship) link.relationship.should eq(relationship) end end it 'should assign the given target pitch' do [A0, B0].each do |pitch| link = Link.new(:target_pitch => pitch) link.target_pitch.should eq(pitch) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
music-transcription-0.3.0 | spec/link_spec.rb |