module RSpec::Cells::ExampleGroup
Attributes
routes[R]
Public Instance Methods
method_missing(method, *args, **kwargs, &block)
click to toggle source
Calls superclass method
# File lib/rspec/cells/example_group.rb, line 13 def method_missing(method, *args, **kwargs, &block) # Send the route helpers to the application router. return super unless route_defined?(method) controller.send(method, *args, **kwargs, &block) end
route_defined?(method)
click to toggle source
# File lib/rspec/cells/example_group.rb, line 28 def route_defined?(method) return false unless @routes if @routes.named_routes.respond_to?(:route_defined?) # Rails > 4.2. @routes.named_routes.route_defined?(method) else @routes.named_routes.helpers.include?(method) end end