Skip to content

Commit aa30af9

Browse files
committed
Use stub_const
1 parent 3064122 commit aa30af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/rubocop/cop/rails/bulk_change_table_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def change
600600

601601
context 'when `DATABASE_URL` is set' do
602602
before do
603-
allow(ENV).to receive(:[]).with('DATABASE_URL').and_return(database_url)
603+
stub_const('ENV', 'DATABASE_URL' => database_url)
604604
end
605605

606606
context 'mysql2' do

0 commit comments

Comments
 (0)