You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2013/11/01 10:52:59 UTC
svn commit: r1537877 - /buildr/trunk/spec/java/java_spec.rb
Author: donaldp
Date: Fri Nov 1 09:52:59 2013
New Revision: 1537877
URL: http://svn.apache.org/r1537877
Log:
Fix test to account for the scenario where RbConfig::CONFIG is now invoked when creating the directories for the test
Modified:
buildr/trunk/spec/java/java_spec.rb
Modified: buildr/trunk/spec/java/java_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/java/java_spec.rb?rev=1537877&r1=1537876&r2=1537877&view=diff
==============================================================================
--- buildr/trunk/spec/java/java_spec.rb (original)
+++ buildr/trunk/spec/java/java_spec.rb Fri Nov 1 09:52:59 2013
@@ -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