Skip to content

Commit 1728957

Browse files
authored
Ensure @options is always set in ActiveModel::ValidationMatcher. (#1669)
This was broken by this commit. a4289e9#diff-3762aac43395307304ac640d275475f4e8512211cdd02bfcca21a1223f130d60R27
1 parent d8140e8 commit 1728957

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/shoulda/matchers/active_model/validation_matcher.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class ValidationMatcher
88
def initialize(attribute)
99
super
1010
@attribute = attribute
11+
@options = {}
1112
@expects_strict = false
1213
@subject = nil
1314
@last_submatcher_run = nil

0 commit comments

Comments
 (0)