From eb23754ebbfbf2d465cc0f900720704fb3703633 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 17 Apr 2013 00:06:11 +0200 Subject: Move template tests from actionpack to actionview --- actionview/test/template/erb/form_for_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 actionview/test/template/erb/form_for_test.rb (limited to 'actionview/test/template/erb/form_for_test.rb') diff --git a/actionview/test/template/erb/form_for_test.rb b/actionview/test/template/erb/form_for_test.rb new file mode 100644 index 0000000000..e722b40a9a --- /dev/null +++ b/actionview/test/template/erb/form_for_test.rb @@ -0,0 +1,11 @@ +require "abstract_unit" +require "template/erb/helper" + +module ERBTest + class TagHelperTest < BlockTestCase + test "form_for works" do + output = render_content "form_for(:staticpage, :url => {:controller => 'blah', :action => 'update'})", "" + assert_match %r{.*}, output + end + end +end -- cgit v1.2.3