1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix render :location => ... test.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2007-05-18 05:25:17 +00:00
parent e48b062eed
commit f7bb3ddce8

View file

@ -1,6 +1,10 @@
require File.dirname(__FILE__) + '/../abstract_unit'
silence_warnings { Customer = Struct.new(:name, :id) }
class Customer < Struct.new(:name, :id)
def to_param
id.to_s
end
end
class CustomersController < ActionController::Base
end
@ -782,6 +786,6 @@ EOS
end
get :render_with_object_location
assert_equal "http://test.host/customers/1", @response.headers["Location"]
assert_equal "http://www.nextangle.com/customers/1", @response.headers["Location"]
end
end