Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change name of anonymous controller to AnonymousController

  • Loading branch information...
commit d08601ee7ccb0c6f0119205e29c1ee0b13270f88 1 parent c522c45
@dchelimsky dchelimsky authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/rspec/rails/example/controller_example_group.rb
View
6 lib/rspec/rails/example/controller_example_group.rb
@@ -127,14 +127,12 @@ def controller_class
def controller(base_class = ApplicationController, &body)
metadata[:example_group][:describes] = Class.new(base_class, &body)
metadata[:example_group][:describes].singleton_class.class_eval do
- def name
- "StubResourcesController"
- end
+ def name; "AnonymousController" end
end
before do
@orig_routes, @routes = @routes, ActionDispatch::Routing::RouteSet.new
- @routes.draw { resources :stub_resources }
+ @routes.draw { resources :anonymous }
end
after do
Please sign in to comment.
Something went wrong with that request. Please try again.