Skip to content

Commit 0c8f3dd

Browse files
Reinstating the check against the appraisal environment variable - rspec tests were not passing locally without this (#284)
Co-authored-by: Neil Williams <neil.williams@dvla.gov.uk>
1 parent 857d1cf commit 0c8f3dd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gemfiles/rails_4.2.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source "https://rubygems.org"
44

55
gem "activerecord-jdbcsqlite3-adapter", "~> 1.3.25", platform: :jruby
6-
gem "rails", "4.2.11.1"
6+
gem "rails", "4.2.11.3"
77
gem "rspec-rails", "~> 3.7"
88
gem "sprockets", "~> 3.7"
99
gem "sqlite3", "< 1.4.0", platform: :ruby

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
##
2020
# Detect Rails/Sinatra dummy application based on gemfile name substituted by Appraisal
2121
#
22-
if ENV['GITHUB_ACTIONS']
22+
if ENV['APPRAISAL_INITIALIZED'] || ENV['GITHUB_ACTIONS']
2323
app_name = Pathname.new(ENV['BUNDLE_GEMFILE']).basename.sub('.gemfile', '')
2424
else
2525
/.*?(?<app_name>rails.*?)\.gemfile/ =~ Dir["gemfiles/rails*.gemfile"].sort.last

0 commit comments

Comments
 (0)