spec/lib/sidekiq-status/worker_spec.rb in sidekiq-status-0.1.0 vs spec/lib/sidekiq-status/worker_spec.rb in sidekiq-status-0.2.0
- old
+ new
@@ -1,13 +1,13 @@
require 'spec_helper'
describe Sidekiq::Status::Worker do
- let!(:job_id) { SecureRandom.uuid }
+ let!(:job_id) { SecureRandom.hex(12) }
describe ".perform_async" do
it "generates and returns job id" do
- SecureRandom.should_receive(:uuid).once.and_return(job_id)
+ SecureRandom.should_receive(:hex).once.and_return(job_id)
StubJob.perform_async().should == job_id
end
end
end
\ No newline at end of file