diff options
-rw-r--r-- | lib/bacon.rb | 2 | ||||
-rw-r--r-- | test/spec_bacon.rb | 10 | ||||
-rw-r--r-- | test/spec_should.rb | 1 |
3 files changed, 6 insertions, 7 deletions
diff --git a/lib/bacon.rb b/lib/bacon.rb index 3277503..af754d4 100644 --- a/lib/bacon.rb +++ b/lib/bacon.rb @@ -192,7 +192,7 @@ end class Proc def raise?(*exceptions) - exceptions << RuntimeError if exceptions.empty? + exceptions = [RuntimeError] if exceptions.empty? call # Only to work in 1.9.0, rescue with splat doesn't work there right now diff --git a/test/spec_bacon.rb b/test/spec_bacon.rb index cfbd151..03bdfd6 100644 --- a/test/spec_bacon.rb +++ b/test/spec_bacon.rb @@ -316,23 +316,23 @@ describe 'describe arguments' do end it 'should work with string' do - check(describe( 'string') {},'string') + check(describe('string') {},'string') end it 'should work with symbols' do - check(describe( :behaviour) {},'behaviour') + check(describe(:behaviour) {},'behaviour') end it 'should work with modules' do - check(describe( Bacon) {},'Bacon') + check(describe(Bacon) {},'Bacon') end it 'should work with namespaced modules' do - check(describe( Bacon::Context) {},'Bacon::Context') + check(describe(Bacon::Context) {},'Bacon::Context') end it 'should work with multiple arguments' do - check(describe( Bacon::Context, :empty) {},'Bacon::Context empty') + check(describe(Bacon::Context, :empty) {},'Bacon::Context empty') end end diff --git a/test/spec_should.rb b/test/spec_should.rb index c31e8c7..30cf36a 100644 --- a/test/spec_should.rb +++ b/test/spec_should.rb @@ -19,7 +19,6 @@ describe "#should shortcut for #it('should')" do should.satisfy {1==1} end - count = Bacon::Counter[:specifications] should "add new specifications" do # XXX this should +=1 but it's +=2 |