Fix Condition#! specs
This commit is contained in:
parent
5fd4f3b371
commit
1ed17e6064
@ -84,8 +84,10 @@ module Producer::Core
|
||||
end
|
||||
|
||||
describe '#!' do
|
||||
%w[true false].each do |b|
|
||||
[true, false].each do |b|
|
||||
context "when #met? return #{b}" do
|
||||
before { allow(condition).to receive(:met?) { b } }
|
||||
|
||||
it 'returns the negated #met?' do
|
||||
expect(condition.!).to be !condition.met?
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user