class CollectionResponderTest

Public Instance Methods

test_collection_respects_isolated_namespace() click to toggle source
# File test/collection_responder_test.rb, line 71
def test_collection_respects_isolated_namespace
  @controller.expects(:businesses_url).returns("businesses_url")
  post :isolated_namespace
  assert_redirected_to "businesses_url"
end
test_collection_respects_location_option() click to toggle source
# File test/collection_responder_test.rb, line 60
def test_collection_respects_location_option
  delete :with_location
  assert_redirected_to "given_location"
end
test_collection_respects_only_symbols() click to toggle source
# File test/collection_responder_test.rb, line 65
def test_collection_respects_only_symbols
  @controller.expects(:admin_addresses_url).returns("admin_addresses_url")
  post :only_symbols
  assert_redirected_to "admin_addresses_url"
end
test_collection_respects_uncountable_resource() click to toggle source
# File test/collection_responder_test.rb, line 77
def test_collection_respects_uncountable_resource
  @controller.expects(:news_index_url).returns("news_index_url")
  post :uncountable
  assert_redirected_to "news_index_url"
end
test_collection_with_namespaced_resource() click to toggle source
# File test/collection_responder_test.rb, line 48
def test_collection_with_namespaced_resource
  @controller.expects(:admin_addresses_url).returns("admin_addresses_url")
  put :namespaced
  assert_redirected_to "admin_addresses_url"
end
test_collection_with_nested_resource() click to toggle source
# File test/collection_responder_test.rb, line 54
def test_collection_with_nested_resource
  @controller.expects(:user_addresses_url).returns("user_addresses_url")
  delete :nested
  assert_redirected_to "user_addresses_url"
end
test_collection_with_single_resource() click to toggle source
# File test/collection_responder_test.rb, line 42
def test_collection_with_single_resource
  @controller.expects(:addresses_url).returns("addresses_url")
  post :single
  assert_redirected_to "addresses_url"
end