Skip to content

Commit

Permalink
[#92] added comment on test
Browse files Browse the repository at this point in the history
  • Loading branch information
rpbaltazar committed Jul 16, 2020
1 parent 029e174 commit bb584b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/examples/generic_adapter_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
expect(num_available_connections).to eq(0)
end

# NOTE: Bug report #92 - when the adapter is set before the railtie is actually run, the adapter class might be
# incorrect. This tests intends to assure that the railtie init resets the adapter to the correct one
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)
Expand Down

0 comments on commit bb584b5

Please sign in to comment.