Skip to content

Instantly share code, notes, and snippets.

@genericsteele
Created November 24, 2013 04:04
Show Gist options
  • Save genericsteele/7623193 to your computer and use it in GitHub Desktop.
Save genericsteele/7623193 to your computer and use it in GitHub Desktop.
Broken testable application controller in Rails 4.0.1
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