diff --git a/lib/punchblock/event.rb b/lib/punchblock/event.rb index 31d7ce54..10699128 100644 --- a/lib/punchblock/event.rb +++ b/lib/punchblock/event.rb @@ -17,4 +17,6 @@ class Event < RayoNode unjoined started_speaking stopped_speaking + mixer_created + mixer_destroyed }.each { |e| require "punchblock/event/#{e}"} diff --git a/lib/punchblock/event/mixer_created.rb b/lib/punchblock/event/mixer_created.rb new file mode 100644 index 00000000..61125b91 --- /dev/null +++ b/lib/punchblock/event/mixer_created.rb @@ -0,0 +1,8 @@ +# encoding: utf-8 + +module Punchblock + class Event + class MixerCreated < Event + end + end +end diff --git a/lib/punchblock/event/mixer_destroyed.rb b/lib/punchblock/event/mixer_destroyed.rb new file mode 100644 index 00000000..62c0f105 --- /dev/null +++ b/lib/punchblock/event/mixer_destroyed.rb @@ -0,0 +1,8 @@ +# encoding: utf-8 + +module Punchblock + class Event + class MixerDestroyed < Event + end + end +end diff --git a/spec/punchblock/event/mixer_created_spec.rb b/spec/punchblock/event/mixer_created_spec.rb new file mode 100644 index 00000000..86bf51c7 --- /dev/null +++ b/spec/punchblock/event/mixer_created_spec.rb @@ -0,0 +1,13 @@ +# encoding: utf-8 + +require 'spec_helper' + +module Punchblock + class Event + describe MixerCreated do + subject { described_class.new target_mixer_name: 'foobar' } + + its(:target_mixer_name) { should == 'foobar' } + end + end +end diff --git a/spec/punchblock/event/mixer_destroyed_spec.rb b/spec/punchblock/event/mixer_destroyed_spec.rb new file mode 100644 index 00000000..eb419c7a --- /dev/null +++ b/spec/punchblock/event/mixer_destroyed_spec.rb @@ -0,0 +1,13 @@ +# encoding: utf-8 + +require 'spec_helper' + +module Punchblock + class Event + describe MixerDestroyed do + subject { described_class.new target_mixer_name: 'foobar' } + + its(:target_mixer_name) { should == 'foobar' } + end + end +end