Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add stubs to make it work in 1.8.7

  • Loading branch information...
commit 642456061bc08f0123fe68842803313104cf16e8 1 parent e39bf9c
@stevehodgkiss authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.