aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorMichael S. Klishin <michael@novemberain.com>2008-12-28 13:21:10 +0300
committerMichael S. Klishin <michael@novemberain.com>2008-12-28 13:21:10 +0300
commitd77deb89d54b18c662ae3de103802e4d7a9d7d08 (patch)
treef5a77220f9057d3b998e1a2db8166ecc021e32cc /actionpack/test/controller
parent5da3ba12159d2c4fc0680efcf0cad8a31f725122 (diff)
downloadrails-d77deb89d54b18c662ae3de103802e4d7a9d7d08.tar.gz
rails-d77deb89d54b18c662ae3de103802e4d7a9d7d08.tar.bz2
rails-d77deb89d54b18c662ae3de103802e4d7a9d7d08.zip
Annotated metaprogramming code across ActiveSupport
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/layout_test.rb22
1 files changed, 12 insertions, 10 deletions
diff --git a/actionpack/test/controller/layout_test.rb b/actionpack/test/controller/layout_test.rb
index 18c01f755c..c2efe9d00b 100644
--- a/actionpack/test/controller/layout_test.rb
+++ b/actionpack/test/controller/layout_test.rb
@@ -165,15 +165,17 @@ class LayoutStatusIsRenderedTest < ActionController::TestCase
end
end
-class LayoutSymlinkedTest < LayoutTest
- layout "symlinked/symlinked_layout"
-end
-
-class LayoutSymlinkedIsRenderedTest < ActionController::TestCase
- def test_symlinked_layout_is_rendered
- @controller = LayoutSymlinkedTest.new
- get :hello
- assert_response 200
- assert_equal "layouts/symlinked/symlinked_layout", @response.layout
+unless RUBY_PLATFORM =~ /(:?mswin|mingw|bccwin)/
+ class LayoutSymlinkedTest < LayoutTest
+ layout "symlinked/symlinked_layout"
+ end
+
+ class LayoutSymlinkedIsRenderedTest < ActionController::TestCase
+ def test_symlinked_layout_is_rendered
+ @controller = LayoutSymlinkedTest.new
+ get :hello
+ assert_response 200
+ assert_equal "layouts/symlinked/symlinked_layout", @response.layout
+ end
end
end