Skip to content
Browse files

Add stubs to make it work in 1.8.7

  • Loading branch information...
1 parent e39bf9c commit 642456061bc08f0123fe68842803313104cf16e8 @stevehodgkiss committed Mar 17, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/generator_spec/test_case.rb
View
8 lib/generator_spec/test_case.rb
@@ -12,8 +12,12 @@ module TestCase
included do
cattr_accessor :test_case, :test_case_instance
- self.test_case = Class.new(Rails::Generators::TestCase)
- self.test_case_instance = self.test_case.new(:test)
+
+ self.test_case = Class.new(Rails::Generators::TestCase) do
+ def fake_test_case; end
+ def add_assertion; end
+ end
+ self.test_case_instance = self.test_case.new(:fake_test_case)
end
module ClassMethods

0 comments on commit 6424560

Please sign in to comment.
Something went wrong with that request. Please try again.