In providers that have many states, have people ex...
# pact-ruby
a
In providers that have many states, have people extracted out the provider states using lambdas (
->
)? Would it be helpful to add examples of how to do that in here? https://github.com/pact-foundation/pact-ruby/wiki/FAQ I鈥檓 willing to help 馃檪
b
I use a test data builder class to easily build up state.
a
thanks beth! we use factory bot so wanted to leverage existing factories but ended up following a similar approach with different files for each
provider_states_for
block