lib/pact_broker/matrix/row.rb in pact_broker-2.31.0 vs lib/pact_broker/matrix/row.rb in pact_broker-2.32.0

- old
+ new

@@ -23,9 +23,17 @@ dataset_module do include PactBroker::Repositories::Helpers include PactBroker::Logging + def consumer consumer_name + where(name_like(:consumer_name, consumer_name)) + end + + def provider provider_name + where(name_like(:provider_name, provider_name)) + end + def matching_selectors selectors if selectors.size == 1 where_consumer_or_provider_is(selectors.first) else where_consumer_and_provider_in(selectors)