You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by bo...@apache.org on 2011/02/21 05:04:24 UTC

svn commit: r1072841 - /buildr/trunk/spec/ide/idea_spec.rb

Author: boisvert
Date: Mon Feb 21 04:04:23 2011
New Revision: 1072841

URL: http://svn.apache.org/viewvc?rev=1072841&view=rev
Log:
Guard Windows-specific tests with Buildr::Util.win_os?

Modified:
    buildr/trunk/spec/ide/idea_spec.rb

Modified: buildr/trunk/spec/ide/idea_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/ide/idea_spec.rb?rev=1072841&r1=1072840&r2=1072841&view=diff
==============================================================================
--- buildr/trunk/spec/ide/idea_spec.rb (original)
+++ buildr/trunk/spec/ide/idea_spec.rb Mon Feb 21 04:04:23 2011
@@ -1019,30 +1019,31 @@ PROJECT_XML
     end
 
     describe "with local_repository_env_override = nil" do
-      describe "base_directory on different drive on windows" do
-        before do
-          @foo = define "foo", :base_dir => "C:/bar" do
-            iml.local_repository_env_override = nil
+      if Buildr::Util.win_os?
+        describe "base_directory on different drive on windows" do
+          before do
+            @foo = define "foo", :base_dir => "C:/bar" do
+              iml.local_repository_env_override = nil
+            end
           end
-        end
 
-        it "generates relative paths correctly" do
-          @foo.iml.send(:resolve_path, "E:/foo").should eql('E:/foo')
+          it "generates relative paths correctly" do
+            @foo.iml.send(:resolve_path, "E:/foo").should eql('E:/foo')
+          end
         end
-      end
 
-      describe "base_directory on same drive on windows" do
-        before do
-          @foo = define "foo", :base_dir => "C:/bar" do
-            iml.local_repository_env_override = nil
+        describe "base_directory on same drive on windows" do
+          before do
+            @foo = define "foo", :base_dir => "C:/bar" do
+              iml.local_repository_env_override = nil
+            end
           end
-        end
 
-        it "generates relative paths correctly" do
-          @foo.iml.send(:resolve_path, "C:/foo").should eql('$MODULE_DIR$/../foo')
+          it "generates relative paths correctly" do
+            @foo.iml.send(:resolve_path, "C:/foo").should eql('$MODULE_DIR$/../foo')
+          end
         end
       end
-
     end
   end