Class: NewActionCustomizedBaseTest

Inherits:
ActionController::TestCase
  • Object
show all
Includes:
CarTestHelper
Defined in:
lib/vendor/plugins/inherited_resources/test/customized_base_test.rb

Instance Method Summary collapse

Methods included from CarTestHelper

#setup

Instance Method Details

#test_expose_a_new_userObject



73
74
75
76
77
# File 'lib/vendor/plugins/inherited_resources/test/customized_base_test.rb', line 73

def test_expose_a_new_user
  Car.expects(:create_new).returns(mock_car)
  get :new
  assert_equal mock_car, assigns(:car)
end