buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject [28/50] git commit: Fix test to account for the scenario where RbConfig::CONFIG is now invoked when creating the directories for the test
Date Thu, 31 Jul 2014 05:12:42 GMT
Fix test to account for the scenario where RbConfig::CONFIG is now invoked when creating the
directories for the test

git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@1537877 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/5cfc9a36
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/5cfc9a36
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/5cfc9a36

Branch: refs/heads/master
Commit: 5cfc9a3601479f53823abdbb9a84ae06d7d9a099
Parents: a4283e8
Author: Peter Donald <donaldp@apache.org>
Authored: Fri Nov 1 09:52:59 2013 +0000
Committer: Peter Donald <donaldp@apache.org>
Committed: Fri Nov 1 09:52:59 2013 +0000

----------------------------------------------------------------------
 spec/java/java_spec.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/5cfc9a36/spec/java/java_spec.rb
----------------------------------------------------------------------
diff --git a/spec/java/java_spec.rb b/spec/java/java_spec.rb
index 14885f7..3756e49 100644
--- a/spec/java/java_spec.rb
+++ b/spec/java/java_spec.rb
@@ -22,7 +22,7 @@ unless RUBY_PLATFORM =~ /java/
     before do
       @old_home, ENV['JAVA_HOME'] = ENV['JAVA_HOME'], nil
       @old_env_java = Object.module_eval { remove_const :ENV_JAVA }
-      RbConfig::CONFIG.should_receive(:[]).with('host_os').and_return('darwin0.9')
+      RbConfig::CONFIG.should_receive(:[]).at_least(:once).with('host_os').and_return('darwin0.9')
     end
 
     it 'should point to default JVM' do


Mime
View raw message