Created
November 24, 2013 04:04
-
-
Save genericsteele/7623193 to your computer and use it in GitHub Desktop.
Broken testable application controller in Rails 4.0.1
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' | |
class TestableApplicationController < ApplicationController | |
def test | |
render nothing: true | |
end | |
end | |
class TestableApplicationControllerTest < ActionController::TestCase | |
Santa::Application.routes.append do | |
get 'test' => 'testable_application#test' | |
end | |
test "test is cool" do | |
get :test | |
assert_response :success | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment