Sha256: 114651b870d3f8607deb5438b4e6e6b36b22143f378cc1bc050d345fefbbebe1
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
require 'woodhouse' describe Woodhouse::Dispatchers::TestDispatcher do subject { Woodhouse::Dispatchers::TestDispatcher.new(Woodhouse::NodeConfiguration.new) } it "should store jobs" do subject.dispatch "PamPoovey", "shock_fights", "game_changer" => "yes" subject.dispatch "SterlingArcher", "spy", "on" => "Ramon Limon" subject.jobs.should have(2).items subject.jobs.first.worker_class_name.should == "PamPoovey" end it "should store job updates" do subject.update_job(:eating, "full" => "not yet") subject.job_updates.first.should == [ :eating, { "full" => "not yet" } ] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
woodhouse-1.0.0 | spec/test_dispatcher_spec.rb |
woodhouse-0.1.5 | spec/test_dispatcher_spec.rb |