Skip to content
This repository
Browse code

Fix ActionPack build on Windows: we really should not test anything r…

…egarding symlinks on Windows.

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
commit fdaa9ed0336634c33b5a529dfe4f5ed506a1fc5e 1 parent 28347d8
Yaroslav Markin authored December 27, 2008 lifo committed December 27, 2008

Showing 1 changed file with 12 additions and 10 deletions. Show diff stats Hide diff stats

  1. 22  actionpack/test/controller/layout_test.rb
22  actionpack/test/controller/layout_test.rb
@@ -165,15 +165,17 @@ def test_layout_status_is_rendered
165 165
   end
166 166
 end
167 167
 
168  
-class LayoutSymlinkedTest < LayoutTest
169  
-  layout "symlinked/symlinked_layout"
170  
-end
171  
-
172  
-class LayoutSymlinkedIsRenderedTest < ActionController::TestCase
173  
-  def test_symlinked_layout_is_rendered
174  
-    @controller = LayoutSymlinkedTest.new
175  
-    get :hello
176  
-    assert_response 200
177  
-    assert_equal "layouts/symlinked/symlinked_layout", @response.layout
  168
+unless RUBY_PLATFORM =~ /(:?mswin|mingw|bccwin)/
  169
+  class LayoutSymlinkedTest < LayoutTest
  170
+    layout "symlinked/symlinked_layout"
  171
+  end
  172
+
  173
+  class LayoutSymlinkedIsRenderedTest < ActionController::TestCase
  174
+    def test_symlinked_layout_is_rendered
  175
+      @controller = LayoutSymlinkedTest.new
  176
+      get :hello
  177
+      assert_response 200
  178
+      assert_equal "layouts/symlinked/symlinked_layout", @response.layout
  179
+    end
178 180
   end
179 181
 end

0 notes on commit fdaa9ed

Please sign in to comment.
Something went wrong with that request. Please try again.