diff --git a/spec/examples/generic_adapter_examples.rb b/spec/examples/generic_adapter_examples.rb index e8bf796f..a81c26bf 100644 --- a/spec/examples/generic_adapter_examples.rb +++ b/spec/examples/generic_adapter_examples.rb @@ -30,7 +30,7 @@ it 'ensures apartment_adapter is properly set during init' do Thread.current[:apartment_adapter] = Apartment::Adapters::AbstractAdapter.new(config) Apartment::Railtie.config.to_prepare_blocks.map(&:call) - expect(Apartment::Tenant.adapter.class.name).to eq 'Apartment::Adapters::PostgresqlAdapter' + expect(Apartment::Tenant.adapter.class.name).to eq subject.class.name end end