Class: IndexActionCustomizedBaseTest

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_all_users_as_instance_variableObject



53
54
55
56
57
# File 'lib/vendor/plugins/inherited_resources/test/customized_base_test.rb', line 53

def test_expose_all_users_as_instance_variable
  Car.expects(:get_all).returns([mock_car])
  get :index
  assert_equal [mock_car], assigns(:cars)
end