Skip to content

Instantly share code, notes, and snippets.

@bsylvain
Last active February 3, 2016 13:16
Show Gist options
  • Select an option

  • Save bsylvain/cc1667c09917556a235f to your computer and use it in GitHub Desktop.

Select an option

Save bsylvain/cc1667c09917556a235f to your computer and use it in GitHub Desktop.
1) Backend::CustomersController routing effectue l'action show
Failure/Error: get :index
ActionController::RoutingError:
Not Found
# ./app/controllers/backend/application_controller.rb:47:in `not_found'
# ./app/controllers/backend/application_controller.rb:35:in `rescue in current_shop'
# ./app/controllers/backend/application_controller.rb:32:in `current_shop'
# ./app/controllers/backend/application_controller.rb:40:in `scope_current_shop'
# ./spec/controllers/backend/customers_controller_spec.rb:9:in `block (3 levels) in <top (required)>'
backend_customers GET (/:locale)/backend/customers(.:format) backend/customers#index {:locale=>/fr|it/}
require 'spec_helper'
describe Backend::CustomersController do
describe "routing" do
let(:user) { FactoryGirl.create(:user)}
it "effectue l'action show" do
get :index
expect(response).to be_success
# get :show, id: user.id
# expect(response).to be_success
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment