test/test_satisfy.rb in muack-0.5.2 vs test/test_satisfy.rb in muack-0.7.0
- old
+ new
@@ -15,11 +15,11 @@
Str.say('Foo').should.eq 'ooF'
Muack.verify.should.eq true
Muack::EnsureReset.call
end
- should 'raise Muack::Unexpected error if passing unexpected argument' do
+ should 'raise Unexpected error if passing unexpected argument' do
mock(Obj).say(is_a(Array)){ 'boo' }
begin
Obj.say(false)
'never'.should.eq 'reach'
rescue Muack::Unexpected => e
@@ -51,11 +51,11 @@
Muack.verify.should.eq true
Muack::EnsureReset.call
end
- should 'raise Muack::Unexpected error if passing unexpected argument' do
+ should 'raise Unexpected error if passing unexpected argument' do
mock(Obj).say(anything){ 'boo' }
begin
Obj.say(6, 7)
'never'.should.eq 'reach'
rescue Muack::Unexpected => e
@@ -82,11 +82,11 @@
Str.say('aa').should.eq 'aa'
Muack.verify.should.eq true
Muack::EnsureReset.call
end
- should 'raise Muack::Unexpected error if passing unexpected argument' do
+ should 'raise Unexpected error if passing unexpected argument' do
mock(Obj).say(match(/\w/)){ 'boo' }
begin
Obj.say('!')
'never'.should.eq 'reach'
rescue Muack::Unexpected => e
@@ -113,11 +113,11 @@
Str.say(:a => 1, :b => 2).should.eq 1
Muack.verify.should.eq true
Muack::EnsureReset.call
end
- should 'raise Muack::Unexpected error if passing unexpected argument' do
+ should 'raise Unexpected error if passing unexpected argument' do
mock(Obj).say(hash_including(:b => 2)){ 'boo' }
begin
Obj.say(:a => 1)
'never'.should.eq 'reach'
rescue Muack::Unexpected => e
@@ -149,11 +149,11 @@
Muack.verify.should.eq true
Muack::EnsureReset.call
end
- should 'raise Muack::Unexpected error if passing unexpected argument' do
+ should 'raise Unexpected error if passing unexpected argument' do
mock(Obj).say(within(0..5)){ 'boo' }
begin
Obj.say(6)
'never'.should.eq 'reach'
rescue Muack::Unexpected => e
@@ -180,10 +180,10 @@
Str.say(14).should.eq 15
Muack.verify.should.eq true
Muack::EnsureReset.call
end
- should 'raise Muack::Unexpected error if passing unexpected argument' do
+ should 'raise Unexpected error if passing unexpected argument' do
mock(Obj).say(satisfy{ |arg| arg % 2 == 0 }){ 'boo' }
begin
Obj.say(1)
'never'.should.eq 'reach'
rescue Muack::Unexpected => e