Skip to content

Commit 65889c1

Browse files
committed
Fix spec
1 parent 0d363fa commit 65889c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/integration/rule_spec.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@
4646
end
4747

4848
specify "defining a rule with options" do
49-
rule = Dry::Logic::Rule(id: :empty?, &:empty?)
49+
# rubocop:disable Style/SymbolProc
50+
# using &:empty? breaks the spec
51+
rule = Dry::Logic::Rule(id: :empty?) { |value| value.empty? }
52+
# rubocop:enable Style/SymbolProc
5053

5154
expect(rule.("foo")).to be_failure
5255
expect(rule.("")).to be_success

0 commit comments

Comments
 (0)