class PolymorhicFlashResponderTest

Public Instance Methods

setup() click to toggle source
# File test/flash_responder_test.rb, line 251
def setup
  Responders::FlashResponder.flash_keys = [ :notice, :alert ]
  @controller.stubs(:polymorphic_url).returns("/")
end
test_polymorhic_respond_with() click to toggle source
# File test/flash_responder_test.rb, line 256
def test_polymorhic_respond_with
  post :create
  assert_equal "Address was successfully created.", flash[:notice]
end