Last active
August 29, 2015 14:13
-
-
Save hopsoft/c1f54cadca0ea34a19f6 to your computer and use it in GitHub Desktop.
Fix routing for engine controller tests in Rails 4.0.xxx
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 'test_helper' | |
| module ExampleEngine | |
| class SomeControllerTest < ActionController::TestCase | |
| setup do | |
| @routes = ExampleEngine::Engine.routes | |
| end | |
| test "index response" do | |
| get :index | |
| assert_response :success | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment