test/unit/daemon_tests.rb in qs-0.6.0 vs test/unit/daemon_tests.rb in qs-0.6.1

- old
+ new

@@ -23,11 +23,11 @@ should have_imeths :name, :pid_file should have_imeths :worker_class, :worker_params should have_imeths :num_workers, :workers should have_imeths :verbose_logging, :logger should have_imeths :shutdown_timeout - should have_imeths :init, :error, :queue + should have_imeths :init, :error, :queue, :queues should "use much-plugin" do assert_includes MuchPlugin, Qs::Daemon end @@ -115,9 +115,15 @@ should "allow adding queues to its configuration" do new_queue = Factory.string subject.queue(new_queue) assert_includes new_queue, subject.configuration.queues + end + + should "allow reading its configuration queues" do + new_queue = Factory.string + subject.queue(new_queue) + assert_equal [new_queue], subject.queues end end class InitSetupTests < UnitTests