Module: Infrataster::Helpers::RSpecHelper
- Defined in:
- lib/infrataster/helpers/rspec_helper.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
4
5
6
7
8
9
10
|
# File 'lib/infrataster/helpers/rspec_helper.rb', line 4
def method_missing(method, *args)
if current_infrataster_context.respond_to?(method)
return current_infrataster_context.public_send(method, *args)
end
super
end
|
Instance Method Details
#current_infrataster_context ⇒ Object
12
13
14
|
# File 'lib/infrataster/helpers/rspec_helper.rb', line 12
def current_infrataster_context
@infrataster_context
end
|