aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/form_helper_test.rb
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-07-19 22:30:00 +0900
committerYehuda Katz <wycats@gmail.com>2009-07-19 22:31:55 +0900
commitb20d68446d2fe98d129385a17a3a4cdacd4b5025 (patch)
tree431c555eb004f56d9db6c3a7efac87cebeb50fca /actionpack/test/template/form_helper_test.rb
parent0f2914be405410e824b40dcff28e5dfa541bdb2a (diff)
downloadrails-b20d68446d2fe98d129385a17a3a4cdacd4b5025.tar.gz
rails-b20d68446d2fe98d129385a17a3a4cdacd4b5025.tar.bz2
rails-b20d68446d2fe98d129385a17a3a4cdacd4b5025.zip
Move default_form_builder to ActionView so it'll work in environments not using ActionView::Base
Diffstat (limited to 'actionpack/test/template/form_helper_test.rb')
-rw-r--r--actionpack/test/template/form_helper_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index 515f73c339..bc24ea3556 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -1024,8 +1024,8 @@ class FormHelperTest < ActionView::TestCase
end
def test_default_form_builder
- old_default_form_builder, ActionView::Base.default_form_builder =
- ActionView::Base.default_form_builder, LabelledFormBuilder
+ old_default_form_builder, ActionView.default_form_builder =
+ ActionView.default_form_builder, LabelledFormBuilder
form_for(:post, @post) do |f|
concat f.text_field(:title)
@@ -1042,7 +1042,7 @@ class FormHelperTest < ActionView::TestCase
assert_dom_equal expected, output_buffer
ensure
- ActionView::Base.default_form_builder = old_default_form_builder
+ ActionView.default_form_builder = old_default_form_builder
end
def test_default_form_builder_with_active_record_helpers