Skip to content

Commit

Permalink
THREDDED_TESTAPP_SPROCKETS_JS was only used for Rails 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rickychilcott committed Jul 19, 2024
1 parent 59f4690 commit 6a5401a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ jobs:

- name: Install Node Packages via Yarn
run: |
if [[ -z $THREDDED_TESTAPP_SPROCKETS_JS ]]; then
cd spec/dummy && yarn && cd -
fi
cd spec/dummy && yarn && cd -
- name: "Run Tests: test:nojs"
run: |
Expand Down
4 changes: 2 additions & 2 deletions spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

require 'web-console' if Rails.env.development?

require 'webpacker' if Rails::VERSION::MAJOR >= 6 && ENV['THREDDED_TESTAPP_SPROCKETS_JS'] != '1'
require 'webpacker' if Rails::VERSION::MAJOR >= 6

module Dummy
class Application < Rails::Application
Expand Down Expand Up @@ -80,7 +80,7 @@ class Application < Rails::Application
config.load_defaults("#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}") if config.respond_to?(:load_defaults)

def self.thredded_testapp_webpack?
Rails::VERSION::MAJOR >= 6 && ENV['THREDDED_TESTAPP_SPROCKETS_JS'] != '1'
Rails::VERSION::MAJOR >= 6
end
end
end

0 comments on commit 6a5401a

Please sign in to comment.