lib/infrataster/helpers/rspec_helper.rb in infrataster-0.1.13 vs lib/infrataster/helpers/rspec_helper.rb in infrataster-0.2.0.beta1
- old
+ new
@@ -1,9 +1,13 @@
module Infrataster
module Helpers
module RSpecHelper
def method_missing(method, *args)
- current_infrataster_context.public_send(method, *args)
+ if current_infrataster_context.respond_to?(method)
+ return current_infrataster_context.public_send(method, *args)
+ end
+
+ super
end
def current_infrataster_context
@infrataster_context
end