Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Reinstating the check against the appraisal environment variable - rs…
Browse files Browse the repository at this point in the history
…pec tests were not passing locally without this (rubyconfig#284)

Co-authored-by: Neil Williams <[email protected]>
  • Loading branch information
neilwilliams and neilwilliamsdvla authored Nov 3, 2020
1 parent 857d1cf commit 0c8f3dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gemfiles/rails_4.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source "https://rubygems.org"

gem "activerecord-jdbcsqlite3-adapter", "~> 1.3.25", platform: :jruby
gem "rails", "4.2.11.1"
gem "rails", "4.2.11.3"
gem "rspec-rails", "~> 3.7"
gem "sprockets", "~> 3.7"
gem "sqlite3", "< 1.4.0", platform: :ruby
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##
# Detect Rails/Sinatra dummy application based on gemfile name substituted by Appraisal
#
if ENV['GITHUB_ACTIONS']
if ENV['APPRAISAL_INITIALIZED'] || ENV['GITHUB_ACTIONS']
app_name = Pathname.new(ENV['BUNDLE_GEMFILE']).basename.sub('.gemfile', '')
else
/.*?(?<app_name>rails.*?)\.gemfile/ =~ Dir["gemfiles/rails*.gemfile"].sort.last
Expand Down

0 comments on commit 0c8f3dd

Please sign in to comment.