spec/td/client_sched_spec.rb in td-client-0.8.68 vs spec/td/client_sched_spec.rb in td-client-0.8.69
- old
+ new
@@ -31,10 +31,10 @@
h = history; h['scheduled_at'] = '2015-02-17 14:16:00 +0900'
stub_api_request(:get, "/v3/schedule/history/#{e(sched_name)}?from=0&to=19").
to_return(:body => {'count' => 1, 'history' => [h]}.to_json)
client.history(sched_name, 0, 19).each do |scheduled_job|
- scheduled_job.scheduled_at.xmlschema.should == '2015-02-17T14:16:00+09:00'
+ scheduled_job.scheduled_at.xmlschema.should == Time.parse('2015-02-17T14:16:00+09:00').xmlschema #avoid depending on CI's Locale
scheduled_job.job_id.should == 'job_id'
scheduled_job.status.should == 'status'
scheduled_job.priority.should == 'priority'
scheduled_job.result_url.should == 'result'
end