spec/simple_job_spec.rb in pushpop-0.1.1 vs spec/simple_job_spec.rb in pushpop-0.1.2
- old
+ new
@@ -1,9 +1,9 @@
require 'spec_helper'
describe 'run a job end to end' do
- it 'should run and return template contents' do
+ it 'runs and return template contents' do
require File.expand_path('../jobs/simple_job', __FILE__)
- Pushpop.jobs.length.should == 1
- Pushpop.jobs.first.run.should == [30, { "return 10" => 10, "increase by 20" => 30}]
+ expect(Pushpop.jobs.length).to eq(1)
+ expect(Pushpop.jobs.first.run).to eq([30, { "return 10" => 10, "increase by 20" => 30}])
end
-end
\ No newline at end of file
+end