spec/lib/backends/redis_spec.rb in rector-0.0.4 vs spec/lib/backends/redis_spec.rb in rector-0.0.5

- old
+ new

@@ -94,13 +94,13 @@ subject.finish_worker("1234:5678") end it "knows if workers are still working" do redis.stubs(:scard).with("#{job_id}:__workers__").returns("1") - subject.workers_working?.should be_true + subject.num_workers_working.should == 1 redis.stubs(:scard).with("#{job_id}:__workers__").returns("0") - subject.workers_working?.should be_false + subject.num_workers_working.should == 0 end end it "cleans up when requests" do redis.stubs(:smembers).returns(["a", "b"])