Class: ShowActionCustomizedBaseTest

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_the_resquested_userObject



63
64
65
66
67
# File 'lib/vendor/plugins/inherited_resources/test/customized_base_test.rb', line 63

def test_expose_the_resquested_user
  Car.expects(:get).with('42').returns(mock_car)
  get :show, :id => '42'
  assert_equal mock_car, assigns(:car)
end