spec/tasks/dispatcher_spec.rb in volt-0.8.27.beta6 vs spec/tasks/dispatcher_spec.rb in volt-0.8.27.beta7
- old
+ new
@@ -1,17 +1,17 @@
if RUBY_PLATFORM != 'opal'
- class TestTask < Volt::TaskHandler
+ class TestTask < Volt::Task
def allowed_method(arg1, arg2)
return 'yes' + arg1 + arg2
end
end
describe Volt::Dispatcher do
before do
Volt.logger = spy('Volt::VoltLogger')
end
- it 'should only allow method calls on TaskHandler or above in the inheritance chain' do
+ it 'should only allow method calls on Task or above in the inheritance chain' do
channel = double('channel')
expect(channel).to receive(:send_message).with('response', 0, 'yes it works', nil)
Volt::Dispatcher.new.dispatch(channel, [0, 'TestTask', :allowed_method, {}, ' it', ' works'])