Skip to content

Commit bcfba44

Browse files
committed
add AssociationMatcher Scope
1 parent 622f38d commit bcfba44

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/liquid-rails/rspec/drop_matchers.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ def class_name(class_name)
8787
self
8888
end
8989

90+
def scope(scope_name)
91+
@options[:scope_name] = scope_name
92+
self
93+
end
94+
9095
def description
9196
"have association #{name}"
9297
end

0 commit comments

Comments
 (0)