Skip to content

Commit

Permalink
fix case sensitive require english
Browse files Browse the repository at this point in the history
  • Loading branch information
codez committed Jul 29, 2014
1 parent 837228f commit 85f454f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ tmp
*.o
*.a
mkmf.log
.project
2 changes: 1 addition & 1 deletion delayed_cron_job.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "delayed_job"

spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
spec.add_development_dependency "sqlite3"
Expand Down
2 changes: 1 addition & 1 deletion lib/delayed_cron_job.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'delayed_job'
require 'english'
require 'English'
require 'delayed_cron_job/cronline'
require 'delayed_cron_job/plugin'
require 'delayed_cron_job/version'
Expand Down
2 changes: 1 addition & 1 deletion lib/delayed_cron_job/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module DelayedCronJob
VERSION = "0.5.0"
VERSION = "0.5.1"
end
4 changes: 3 additions & 1 deletion spec/delayed_cron_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def perform; end

it 'schedules a new job after success' do
job.update_column(:run_at, now)
job.reload

worker.work_off

Expand All @@ -47,6 +48,7 @@ def perform; end
it 'schedules a new job after failure' do
allow_any_instance_of(TestJob).to receive(:perform).and_raise('Fail!')
job.update(run_at: now)
job.reload

worker.work_off

Expand Down Expand Up @@ -153,7 +155,7 @@ def perform; end
end

it 'does not reschedule a job after a successful run' do
job = Delayed::Job.enqueue(handler)
Delayed::Job.enqueue(handler)

worker.work_off

Expand Down

0 comments on commit 85f454f

Please sign in to comment.