buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boisv...@apache.org
Subject svn commit: r1072841 - /buildr/trunk/spec/ide/idea_spec.rb
Date Mon, 21 Feb 2011 04:04:24 GMT
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
 



Mime
View raw message