FIX: Unset RAILS_ENV to allow running both dev stuff and test (#629)
authorJarek Radosz <jradosz@gmail.com>
Tue, 31 May 2022 11:01:37 +0000 (13:01 +0200)
committerGitHub <noreply@github.com>
Tue, 31 May 2022 11:01:37 +0000 (13:01 +0200)
commit7f253c3d28aa3606c1177df1b6273db314e46d2c
tree7db247c67a742c3d729d12336b73e7e023db5aa3
parent241a42ce718147280f3fe389a9da5a5b812a22eb
FIX: Unset RAILS_ENV to allow running both dev stuff and test (#629)

Trying to run specs with RAILS_ENV=development ends up like:

```
/usr/local/lib/ruby/gems/2.7.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30: warning: ⛔️ WARNING: Sidekiq testing API enabled, but this is not the test environment.  Your jobs will not go to Redis.

Randomized with seed 1716
FF

Failures:

  1) CategoryBadge escapes HTML in category names / descriptions
     Failure/Error: DB.test_transaction = ActiveRecord::Base.connection.current_transaction

     NoMethodError:
       undefined method `test_transaction=' for #<MiniSqlMultisiteConnection:0x000055a7662ea1e0>
     # ./spec/rails_helper.rb:284:in `block (2 levels) in <top (required)>'
     # ./spec/rails_helper.rb:277:in `block (2 levels) in <top (required)>'

```
image/discourse_dev/Dockerfile