Module: GeneratorSpec::TestCase
- Extended by:
- ActiveSupport::Concern
- Includes:
- FileUtils, Matcher
- Included in:
- GeneratorExampleGroup
- Defined in:
- lib/generator_spec/test_case.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #method_missing(method_sym, *arguments, &block) ⇒ Object
- #respond_to?(method_sym, include_private = false) ⇒ Boolean
Methods included from Matcher
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_sym, *arguments, &block) ⇒ Object
36 37 38 |
# File 'lib/generator_spec/test_case.rb', line 36 def method_missing(method_sym, *arguments, &block) self.test_case_instance.send(method_sym, *arguments, &block) end |
Instance Method Details
#respond_to?(method_sym, include_private = false) ⇒ Boolean
40 41 42 43 44 45 46 |
# File 'lib/generator_spec/test_case.rb', line 40 def respond_to?(method_sym, include_private = false) if self.test_case_instance.respond_to?(method_sym) true else super end end |