Sha256: d15735a94b2c31930eae3f9de2d3e0d13707f0e9fc446c600c494814d9b42aff

Contents?: true

Size: 605 Bytes

Versions: 6

Compression:

Stored size: 605 Bytes

Contents

require_relative '../spec_helper'

describe "RBMusic Constants" do

  describe RBMusic::NOTE_NAMES do
    it "is correct" do
      subject.should == ["F", "C", "G", "D", "A", "E", "B"]
    end
  end

  describe RBMusic::ACCIDENTALS do
    it "is correct" do
      subject.should == ["bb", "b", "", "#", "x"]
    end
  end

  describe RBMusic::NOTES do
    it "contains a key for each note/accidental combination" do
      RBMusic::NOTE_NAMES.each do |note_name|
        ACCIDENTALS.each do |accidental|
          NOTES.should have_key("#{note_name}#{accidental}")
        end
      end
    end
  end

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rb-music-0.0.6 spec/rb-music/constants_spec.rb
rb-music-0.0.5 spec/rb-music/constants_spec.rb
rb-music-0.0.4 spec/rb-music/constants_spec.rb
rb-music-0.0.3 spec/rb-music/constants_spec.rb
motion-music-0.0.2 spec/rb-music/constants_spec.rb
rb-music-0.0.1 spec/rb-music/constants_spec.rb