From cbab62327a04b976e0d0dc2475caa50966d4edaa Mon Sep 17 00:00:00 2001 From: OsamaSayegh Date: Tue, 14 Jul 2020 10:38:27 +0300 Subject: [PATCH 1/2] Fix travis --- spec/fixtures/webpacker.yml | 2 +- spec/integration/railtie_methods_spec.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/fixtures/webpacker.yml b/spec/fixtures/webpacker.yml index 519b031a..d5b070c2 100644 --- a/spec/fixtures/webpacker.yml +++ b/spec/fixtures/webpacker.yml @@ -1,2 +1,2 @@ -development: +test: public_output_path: some/assets/path diff --git a/spec/integration/railtie_methods_spec.rb b/spec/integration/railtie_methods_spec.rb index 851d935c..6cc655de 100644 --- a/spec/integration/railtie_methods_spec.rb +++ b/spec/integration/railtie_methods_spec.rb @@ -181,6 +181,7 @@ def to_seconds(array) it '#get_webpacker_assets_path returns webpacker public_output_path if webpacker exists' do expect(described_class.get_webpacker_assets_path()).to eq(nil) + ENV['RAILS_ENV'] = 'test' require 'rails' require 'webpacker' tmp_path = Pathname.new("/tmp/rails_root_#{SecureRandom.hex}") From b2e898fb17a2f6d931b11b7ca4c5fd292aa338ff Mon Sep 17 00:00:00 2001 From: OsamaSayegh Date: Tue, 14 Jul 2020 11:17:19 +0300 Subject: [PATCH 2/2] Remove ruby 2.4 from travis --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 618b9572..f95d03bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,6 @@ language: ruby cache: bundler rvm: - - 2.4 - 2.5 - 2.6 before_install: