Wednesday, 4 April 2012

Error on Devise Registrations controller spec


Hi,

When I run the registrations controller spec file to test the registration page of the devise. I am getting the below error

ruby -I spec spec/controllers/registrations_controller_spec.rb
F

Failures:

  1) RegistrationsController Display Registration page returns http success
     Failure/Error: get 'new'
     AbstractController::ActionNotFound:
       Could not find devise mapping for path "/users/sign_up".
       Maybe you forgot to wrap your route inside the scope block? For example:
     
       devise_scope :user do
         match "/some/route" => "some_devise_controller"
       end
     # spec/controllers/registrations_controller_spec.rb:7:in `block (3 levels) in <main>'

Finished in 0.2411 seconds
1 example, 1 failure

Failed examples:

rspec spec/controllers/registrations_controller_spec.rb:6 # RegistrationsController Display Registration page returns http success

No comments:

Post a Comment