spec/job_spec.rb in em-beanstalk-0.0.3 vs spec/job_spec.rb in em-beanstalk-0.0.4

- old
+ new

@@ -1,26 +1,26 @@ require 'spec/spec_helper' -describe EMJack::Job do +describe EM::Beanstalk::Job do it 'should convert id to an integer' do - j = EMJack::Job.new(nil, "123", "body") + j = EM::Beanstalk::Job.new(nil, "123", "body") j.id.should == 123 end it 'should fail if id is not an integer' do proc { - j = EMJack::Job.new(nil, "asd", "body") + j = EM::Beanstalk::Job.new(nil, "asd", "body") }.should raise_error end it 'should send a delete command to the connection' do conn = mock(:conn) conn.should_receive(:default_priority) conn.should_receive(:default_delay) conn.should_receive(:default_ttr) - j = EMJack::Job.new(conn, 1, "body") + j = EM::Beanstalk::Job.new(conn, 1, "body") conn.should_receive(:delete).with(j) j.delete end @@ -29,10 +29,10 @@ conn = mock(:conn) conn.should_receive(:default_priority) conn.should_receive(:default_delay) conn.should_receive(:default_ttr) - j = EMJack::Job.new(conn, 2, 'body') + j = EM::Beanstalk::Job.new(conn, 2, 'body') conn.should_receive(:stats).with(:job, j) j.stats end end \ No newline at end of file