spec/matchers/single_contain_matcher.rb in remarkable-3.0.8 vs spec/matchers/single_contain_matcher.rb in remarkable-3.0.9
- old
+ new
@@ -5,16 +5,17 @@
arguments :value, :block => :iterator
assertions :is_array?, :included?
optional :allow_nil
- optional :allow_blank
+ optional :allow_blank
+ optional :values, :splat => true
after_initialize :set_after_initialize
before_assert do
- @before_assert = true
- @iterator.call(@subject) if @iterator
+ @before_assert = true
+ @subject.instance_eval(&@iterator) if @iterator
end
protected
def included?