aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-05-28 12:43:13 -0700
committerJosé Valim <jose.valim@gmail.com>2011-05-28 12:43:13 -0700
commita46b03e728b6bc391c318d84f5bf6dfcc234b41d (patch)
treeffdb764035aa56bb79b3013be62452e9347e5ddd /actionpack/test
parent2fd7ea97ecfd40ee23e0f75ee0ed9a4febcbdb15 (diff)
parent3f0c71c8524856c32bc056bdb38136b3d18f2aaf (diff)
downloadrails-a46b03e728b6bc391c318d84f5bf6dfcc234b41d.tar.gz
rails-a46b03e728b6bc391c318d84f5bf6dfcc234b41d.tar.bz2
rails-a46b03e728b6bc391c318d84f5bf6dfcc234b41d.zip
Merge pull request #1203 from dchelimsky/stringify-parameter-values-in-tests
Stringify param values in controller tests.
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/test_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/test/controller/test_test.rb b/actionpack/test/controller/test_test.rb
index 5896222a0a..899435ff38 100644
--- a/actionpack/test/controller/test_test.rb
+++ b/actionpack/test/controller/test_test.rb
@@ -493,6 +493,16 @@ XML
)
end
+ def test_params_passing_with_fixnums
+ get :test_params, :page => {:name => "Page name", :month => 4, :year => 2004, :day => 6}
+ parsed_params = eval(@response.body)
+ assert_equal(
+ {'controller' => 'test_test/test', 'action' => 'test_params',
+ 'page' => {'name' => "Page name", 'month' => '4', 'year' => '2004', 'day' => '6'}},
+ parsed_params
+ )
+ end
+
def test_params_passing_with_frozen_values
assert_nothing_raised do
get :test_params, :frozen => 'icy'.freeze, :frozens => ['icy'.freeze].freeze