Last active
January 3, 2016 04:19
-
-
Save wlangstroth/8408612 to your computer and use it in GitHub Desktop.
This file contains 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_relative '../test_helper' | |
class ThingsControllerTest < ActionController::TestCase | |
setup do | |
@thing = things(:default) | |
end | |
def test_index | |
things = [things(:default)] | |
get :index | |
assert_response :success | |
assert_equal things, assigns(:things) | |
end | |
def test_show | |
get :show, :id => @thing | |
assert_response :success | |
assert_template :show | |
assert_equal @thing, assigns(:thing) | |
end | |
def test_edit | |
end | |
def test_update | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment