test/unit/queue_tests.rb in qs-0.6.1 vs test/unit/queue_tests.rb in qs-0.7.0

- old
+ new

@@ -160,14 +160,14 @@ assert_empty subject.enqueued_jobs end should "know its custom inspect" do reference = '0x0%x' % (subject.object_id << 1) - expected = "#<#{subject.class}:#{reference} " \ - "@name=#{subject.name.inspect} " \ - "@job_handler_ns=#{subject.job_handler_ns.inspect} " \ - "@event_handler_ns=#{subject.event_handler_ns.inspect}>" - assert_equal expected, subject.inspect + exp = "#<#{subject.class}:#{reference} " \ + "@name=#{subject.name.inspect} " \ + "@job_handler_ns=#{subject.job_handler_ns.inspect} " \ + "@event_handler_ns=#{subject.event_handler_ns.inspect}>" + assert_equal exp, subject.inspect end should "require a name when initialized" do assert_raises(InvalidError){ Qs::Queue.new } end