Skip to content

Commit

Permalink
test Status.find
Browse files Browse the repository at this point in the history
  • Loading branch information
arirusso committed May 5, 2015
1 parent 6c84630 commit e18b3d1
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions test/constant_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,25 @@ class MIDIMessage::ConstantTest < Minitest::Test

end

context "Status" do

context ".find" do

should "find status" do
assert_equal 0x8, MIDIMessage::Constant::Status.find("Note Off")
assert_equal 0x9, MIDIMessage::Constant::Status.find("Note On")
assert_equal 0xB, MIDIMessage::Constant::Status["Control Change"]
end

end

end

context "Loader" do

context "DSL" do

context "#[]" do
context ".find" do

context "note on" do

Expand Down Expand Up @@ -172,7 +186,7 @@ class MIDIMessage::ConstantTest < Minitest::Test
context "cc" do

setup do
@message = MIDIMessage::ControlChange["Modulation Wheel"].new(2, 0x20)
@message = MIDIMessage::ControlChange.find("Modulation Wheel").new(2, 0x20)
end

should "create message object" do
Expand Down

0 comments on commit e18b3d1

Please sign in to comment.