aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/view
diff options
context:
space:
mode:
authorDan Pickett <dpickett@enlightsolutions.com>2008-12-15 11:47:39 -0600
committerJoshua Peek <josh@joshpeek.com>2008-12-15 11:47:39 -0600
commit38412ecb5daa1826574ad0f132d23dc2ef4288bf (patch)
tree98769628e0f83962711f845c4e9e3c005024204a /actionpack/test/view
parent07326b38ec1cfba9b8d55015c40121258cf79297 (diff)
downloadrails-38412ecb5daa1826574ad0f132d23dc2ef4288bf.tar.gz
rails-38412ecb5daa1826574ad0f132d23dc2ef4288bf.tar.bz2
rails-38412ecb5daa1826574ad0f132d23dc2ef4288bf.zip
Fixed ActionView::TestCase current url context [#1561 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/test/view')
-rw-r--r--actionpack/test/view/test_case_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/view/test_case_test.rb b/actionpack/test/view/test_case_test.rb
new file mode 100644
index 0000000000..9124198b28
--- /dev/null
+++ b/actionpack/test/view/test_case_test.rb
@@ -0,0 +1,8 @@
+require 'abstract_unit'
+
+class TestCaseTest < ActionView::TestCase
+ def test_should_have_current_url
+ controller = TestController.new
+ assert_nothing_raised(NoMethodError){ controller.url_for({:controller => "foo", :action => "index"}) }
+ end
+end