Skip to content

Commit

Permalink
FIX : Setup add require 'active_support/test_case' , cause of error C…
Browse files Browse the repository at this point in the history
…onstant not found Test when ran as gem (not loaded ? no scope here?)
  • Loading branch information
anoiaque committed Jan 23, 2011
1 parent a935059 commit 647797a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/setup.rb
Expand Up @@ -14,6 +14,7 @@ def run(result,&block)
end end


if defined?(ActiveSupport::TestCase) if defined?(ActiveSupport::TestCase)
require 'active_support/test_case' #fix constant not found Test when ran as gem under rails 3 app
module ActiveSupport module ActiveSupport
class TestCase < ::Test::Unit::TestCase class TestCase < ::Test::Unit::TestCase
alias_method :original_run, :run alias_method :original_run, :run
Expand Down
Binary file modified test/db/test.sqlite3
Binary file not shown.

0 comments on commit 647797a

Please sign in to comment.