spec/unit/operations/negation_spec.rb in dry-logic-0.5.0 vs spec/unit/operations/negation_spec.rb in dry-logic-0.6.0
- old
+ new
@@ -1,10 +1,10 @@
RSpec.describe Operations::Negation do
subject(:operation) { Operations::Negation.new(is_int) }
include_context 'predicates'
- let(:is_int) { Rule::Predicate.new(int?) }
+ let(:is_int) { Rule::Predicate.build(int?) }
describe '#call' do
it 'negates its rule' do
expect(operation.('19')).to be_success
expect(operation.(17)).to be_failure