Skip to content

Commit

Permalink
Add a test for multiple action type registration
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjachmann committed Mar 4, 2013
1 parent 4db3525 commit 80f62de
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/test_interaction.rb
Expand Up @@ -358,6 +358,15 @@ def @device.read_pending_actions
assert @mixer
assert @exclusive_mixer
end

it 'allows for multiple types' do
@downs = []
@interaction.response_to([:up, :down], :down) {|i, a| @downs << a[:type]}
@interaction.respond_to(:up, :down)
@interaction.respond_to(:down, :down)
@interaction.respond_to(:up, :down)
assert_equal [:up, :down, :up], @downs
end

end

Expand Down

0 comments on commit 80f62de

Please sign in to comment.