Skip to content

Commit

Permalink
Prevent uninitialized constant error
Browse files Browse the repository at this point in the history
you can load Test::Unit without Test::Unit::TestCase
  • Loading branch information
mikz authored and Michal Cichra committed Aug 17, 2015
1 parent e0fca9a commit a8f79fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/resque_unit.rb
Expand Up @@ -13,7 +13,7 @@ module ResqueUnit
require 'resque_unit/assertions'
require 'resque_unit/plugin'

if defined?(Test::Unit)
if defined?(Test::Unit::TestCase)
Test::Unit::TestCase.send(:include, ResqueUnit::Assertions)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/resque_unit_scheduler.rb
@@ -1,7 +1,7 @@
require 'resque_unit/scheduler'
require 'resque_unit/scheduler_assertions'

if defined?(Test::Unit)
if defined?(Test::Unit::TestCase)
Test::Unit::TestCase.send(:include, ResqueUnit::SchedulerAssertions)
end

Expand Down

0 comments on commit a8f79fe

Please sign in to comment.