Last active
February 3, 2016 13:16
-
-
Save bsylvain/cc1667c09917556a235f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| backend_customers GET (/:locale)/backend/customers(.:format) backend/customers#index {:locale=>/fr|it/} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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