Skip to content

Commit

Permalink
Use stub_const
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Feb 27, 2024
1 parent 3064122 commit aa30af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rubocop/cop/rails/bulk_change_table_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def change

context 'when `DATABASE_URL` is set' do
before do
allow(ENV).to receive(:[]).with('DATABASE_URL').and_return(database_url)
stub_const('ENV', 'DATABASE_URL' => database_url)
end

context 'mysql2' do
Expand Down

0 comments on commit aa30af9

Please sign in to comment.