lib/rspec/rails/example/cell_example_group.rb in rspec-cells-0.1.1 vs lib/rspec/rails/example/cell_example_group.rb in rspec-cells-0.1.2

- old
+ new

@@ -37,19 +37,17 @@ def render_cell(*args) Capybara.string super end end - module InstanceMethods - attr_reader :controller, :routes + attr_reader :controller, :routes - def method_missing(method, *args, &block) - # Send the route helpers to the application router. - if @routes && @routes.named_routes.helpers.include?(method) - @controller.send(method, *args, &block) - else - super - end + def method_missing(method, *args, &block) + # Send the route helpers to the application router. + if @routes && @routes.named_routes.helpers.include?(method) + @controller.send(method, *args, &block) + else + super end end included do metadata[:type] = :cell