Skip to content

Commit

Permalink
[#92] relying on subject to ensure correct class in test
Browse files Browse the repository at this point in the history
  • Loading branch information
rpbaltazar committed Jul 16, 2020
1 parent bb584b5 commit 6611731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/examples/generic_adapter_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6611731

Please sign in to comment.