Hello,
in the project I use dry-validation
gem.
When I use binding.pry
inside rspec examples and call the subject:
subject(:update_store) { described_class.new(partner.user, params).call }
....
it "creates 2 opening hours" do
binding.pry
expect { update_store }.to change { OpeningHour.count }.from(0).to(2)
end
I get this error:
[1] pry(#<RSpec::ExampleGroups::StoresUseCasesUpdate::WhenEverythingIsFineAndWell::WhenOpeningHoursAreUpdated::WhenOpeningHoursAreNotYetCreated>)> update_store
NameError: uninitialized constant Dry::Validation::Contract::ClassInterface
from /usr/local/bundle/gems/dry-validation-1.10.0/lib/dry/validation/contract.rb:47:in `<class:Contract>'
I’m pretty sure it used to work. Has anyone had a similar problem?