public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Fix ActionPack build on Windows: we really should not test anything regarding 
symlinks on Windows.

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
yaroslav (author)
Sat Dec 27 09:28:28 -0800 2008
lifo (committer)
Sat Dec 27 09:33:13 -0800 2008
commit  fdaa9ed0336634c33b5a529dfe4f5ed506a1fc5e
tree    ce268a359eacb91ba9b1ae46a7045817e983e945
parent  28347d889bb4304e681bf885fea734067fdd8ff6
...
165
166
167
168
169
170
171
172
173
174
175
176
177
 
 
 
 
 
 
 
 
 
 
 
 
178
179
...
165
166
167
 
 
 
 
 
 
 
 
 
 
168
169
170
171
172
173
174
175
176
177
178
179
180
181
0
@@ -165,15 +165,17 @@ class LayoutStatusIsRenderedTest < ActionController::TestCase
0
   end
0
 end
0
 
0
-class LayoutSymlinkedTest < LayoutTest
0
-  layout "symlinked/symlinked_layout"
0
-end
0
-
0
-class LayoutSymlinkedIsRenderedTest < ActionController::TestCase
0
-  def test_symlinked_layout_is_rendered
0
-    @controller = LayoutSymlinkedTest.new
0
-    get :hello
0
-    assert_response 200
0
-    assert_equal "layouts/symlinked/symlinked_layout", @response.layout
0
+unless RUBY_PLATFORM =~ /(:?mswin|mingw|bccwin)/
0
+  class LayoutSymlinkedTest < LayoutTest
0
+    layout "symlinked/symlinked_layout"
0
+  end
0
+
0
+  class LayoutSymlinkedIsRenderedTest < ActionController::TestCase
0
+    def test_symlinked_layout_is_rendered
0
+      @controller = LayoutSymlinkedTest.new
0
+      get :hello
0
+      assert_response 200
0
+      assert_equal "layouts/symlinked/symlinked_layout", @response.layout
0
+    end
0
   end
0
 end

Comments