Skip to content

Commit d26c26b

Browse files
committed
Fix tests for bad cron message
1 parent 3ffe31a commit d26c26b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: ruby
22
rvm:
3+
- 2.6.0
34
- 2.5.0
45
- 2.4.3
56
- 2.3.6

test/unit/job_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,8 @@
935935
@jobs_hash['name_of_job']['cron'] = "bad cron"
936936
out = Sidekiq::Cron::Job.load_from_hash @jobs_hash
937937
assert_equal 1, out.size, "should have 1 error"
938-
assert_equal ({"name_of_job"=>["'cron' -> \"bad cron\" -> ArgumentError: not a cron string \"bad cron\""]}), out
938+
assert_includes out['name_of_job'].first, "bad cron"
939+
assert_includes out['name_of_job'].first, "ArgumentError:"
939940
assert_equal 1, Sidekiq::Cron::Job.all.size, "Should have only 1 job after load"
940941
end
941942

0 commit comments

Comments
 (0)