aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-07-08 21:44:31 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-07-08 21:45:53 -0300
commitd9182c0ae9494ad1181678644cbe1c5974e1069c (patch)
tree91ffc34a61f05b68ce604d7dddb96ccba4baca33 /actionpack/test
parentea4b94a7bf707d27af44701fa44ef5f916b84e01 (diff)
downloadrails-d9182c0ae9494ad1181678644cbe1c5974e1069c.tar.gz
rails-d9182c0ae9494ad1181678644cbe1c5974e1069c.tar.bz2
rails-d9182c0ae9494ad1181678644cbe1c5974e1069c.zip
config should always be an AS::InheritableOptions object. Closes #1992
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/test_case_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/test_case_test.rb b/actionpack/test/template/test_case_test.rb
index f463675a2e..a75f1bc981 100644
--- a/actionpack/test/template/test_case_test.rb
+++ b/actionpack/test/template/test_case_test.rb
@@ -45,6 +45,10 @@ module ActionView
assert_same _view, view
end
+ test "retrieve non existing config values" do
+ assert_equal nil, ActionView::Base.new.config.something_odd
+ end
+
test "works without testing a helper module" do
assert_equal 'Eloy', render('developers/developer', :developer => stub(:name => 'Eloy'))
end