spec/job_array_spec.rb in rufus-scheduler-3.0.7 vs spec/job_array_spec.rb in rufus-scheduler-3.0.8
- old
+ new
@@ -20,20 +20,20 @@
it 'pushes jobs' do
@array.push(DummyJob.new('a', Time.local(0)))
- @array.to_a.collect(&:id).should == %w[ a ]
+ expect(@array.to_a.collect(&:id)).to eq(%w[ a ])
end
it 'pushes and remove duplicates' do
j = DummyJob.new('a', Time.local(0))
@array.push(j)
@array.push(j)
- @array.to_a.collect(&:id).should == %w[ a ]
+ expect(@array.to_a.collect(&:id)).to eq(%w[ a ])
end
end
end