From d62f978a857c6f63df14830d85b3380c9f408cbd Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Tue, 20 Mar 2012 18:02:51 -0400 Subject: fix should.change tests failing intermittently on jruby + 1.8.7 see http://travis-ci.org/#!/cldwalker/bacon/builds/910141 tests were running so fast that Time.now remains the same --- test/spec_bacon.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec_bacon.rb b/test/spec_bacon.rb index bd4cfbf..c14a180 100644 --- a/test/spec_bacon.rb +++ b/test/spec_bacon.rb @@ -71,7 +71,7 @@ describe "Bacon" do end it "should have should.change" do - lambda { lambda {}.should.change { Time.now } }.should succeed + lambda { lambda {}.should.change { sleep 0.001; Time.now } }.should succeed lambda { i = 1 @@ -83,7 +83,7 @@ describe "Bacon" do lambda { i *= 2 }.should.change { i } }.should fail - lambda { should.change { Time.now } }.should succeed + lambda { should.change { sleep 0.001; Time.now } }.should succeed lambda { should.change { 42 } }.should fail end -- cgit 1.4.1 From 79677cf11df012dd7643ad12cd8583ab85262588 Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Tue, 20 Mar 2012 18:19:29 -0400 Subject: all tests green - remove allowed_failures for travis --- .travis.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 601fdf7..4cf6110 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,10 +10,3 @@ rvm: notifications: recipients: - gabriel.horner@gmail.com -matrix: - # until issues are fixed - allow_failures: - - rvm: rbx-18mode - - rvm: rbx-19mode - - rvm: jruby-18mode - - rvm: jruby-19mode -- cgit 1.4.1