diff --git a/spec/unit/operation_spec.rb b/spec/unit/operation_spec.rb index 8e91252..e6fe0eb 100644 --- a/spec/unit/operation_spec.rb +++ b/spec/unit/operation_spec.rb @@ -5,6 +5,12 @@ RSpec.describe Dry::Operation do include Dry::Monads[:result] + it "configures loader" do + expect do + described_class.loader.eager_load(force: true) + end.not_to raise_error + end + describe "#steps" do it "wraps block's return value in a Success" do klass = Class.new(described_class) do