spec/unit/hanami/providers/db/config_spec.rb in hanami-2.2.0.beta2 vs spec/unit/hanami/providers/db/config_spec.rb in hanami-2.2.0.rc1
- old
+ new
@@ -30,22 +30,9 @@
expect { |b| config.adapter(:yaml, &b) }
.to yield_with_args(an_instance_of(Hanami::Providers::DB::Adapter))
end
end
- describe "#any_adapter" do
- it "adds an adapter keyed without a name" do
- expect { config.any_adapter }
- .to change { config.adapters.to_h }
- .to hash_including(nil)
- end
-
- it "yields the adapter for configuration" do
- expect { |b| config.any_adapter(&b) }
- .to yield_with_args(an_instance_of(Hanami::Providers::DB::Adapter))
- end
- end
-
describe "adapters" do
subject(:adapter) { config.adapter(:yaml) }
describe "#plugin" do
it "adds a plugin without a block" do