Permalink
Browse files

Merge pull request #6 from parndt/patch-1

Fixed deprecation in Rails 3.2 where InstanceMethods is no longer included in Rails 4.0
  • Loading branch information...
2 parents 889dcfc + 9a0cd83 commit bff19ce065f07a8befbe47d58a909ea3d4b80d4c @stevehodgkiss committed Jan 28, 2012
Showing with 9 additions and 11 deletions.
  1. +9 −11 lib/generator_spec/test_case.rb
@@ -34,17 +34,15 @@ def destination(path)
end
end
- module InstanceMethods
- def method_missing(method_sym, *arguments, &block)
- self.test_case_instance.send(method_sym, *arguments, &block)
- end
-
- def respond_to?(method_sym, include_private = false)
- if self.test_case_instance.respond_to?(method_sym)
- true
- else
- super
- end
+ def method_missing(method_sym, *arguments, &block)
+ self.test_case_instance.send(method_sym, *arguments, &block)
+ end
+
+ def respond_to?(method_sym, include_private = false)
+ if self.test_case_instance.respond_to?(method_sym)
+ true
+ else
+ super
end
end
end

0 comments on commit bff19ce

Please sign in to comment.