test/unit/daemon_test.rb in refinery-0.9.4 vs test/unit/daemon_test.rb in refinery-0.9.5

- old
+ new

@@ -15,9 +15,13 @@ end should "have logging" do daemon = Refinery::Daemon.new(@server, 'sample', @waiting_queue, @error_queue, @done_queue) assert_not_nil daemon.logger end + should "allow visibility setting" do + @waiting_queue.stubs(:receive).with({'visibility' => 600}) + daemon = Refinery::Daemon.new(@server, 'sample', @waiting_queue, @error_queue, @done_queue, {'visibility' => 600}) + end context "that is started" do setup do @daemon = Refinery::Daemon.new(@server, 'sample', @waiting_queue, @error_queue, @done_queue) end should "have a state of running" do \ No newline at end of file