1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Fix bug on hardcoded BUNDLE_GEMDIR by mistake

This commit is contained in:
Prem Sichanugrist 2011-05-27 17:23:24 -04:00
parent 71c47f7cef
commit 3c948de243
4 changed files with 12 additions and 8 deletions

View file

@ -4,6 +4,10 @@ APP_NAME = 'testapp'.freeze
BUNDLE_ENV_VARS = %w(RUBYOPT BUNDLE_PATH BUNDLE_BIN_PATH BUNDLE_GEMFILE)
ORIGINAL_BUNDLE_VARS = ENV.select{ |key,value| BUNDLE_ENV_VARS.include?(key) }
Before do
ENV['BUNDLE_GEMFILE'] = File.join(Dir.pwd, ENV['BUNDLE_GEMFILE'])
end
After do
ORIGINAL_BUNDLE_VARS.each_pair do |key, value|
ENV[key] = value

View file

@ -33,7 +33,7 @@ GEM
activemodel (= 3.0.3)
activesupport (= 3.0.3)
activesupport (3.0.3)
appraisal (0.3.2)
appraisal (0.3.3)
aruba (~> 0.3.6)
bundler
rake
@ -98,7 +98,7 @@ GEM
rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.6.0)
rspec-rails (2.6.1.beta1)
rspec-rails (2.6.1)
actionpack (~> 3.0)
activesupport (~> 3.0)
railties (~> 3.0)
@ -126,7 +126,7 @@ PLATFORMS
ruby
DEPENDENCIES
appraisal (~> 0.3.1)
appraisal (~> 0.3.3)
cucumber (~> 0.10.0)
mocha (~> 0.9.10)
rails (= 3.0.3)

View file

@ -36,7 +36,7 @@ GEM
activesupport (= 3.1.0.rc1)
activesupport (3.1.0.rc1)
multi_json (~> 1.0)
appraisal (0.3.2)
appraisal (0.3.3)
aruba (~> 0.3.6)
bundler
rake
@ -107,7 +107,7 @@ GEM
rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.6.0)
rspec-rails (2.6.1.beta1)
rspec-rails (2.6.1)
actionpack (~> 3.0)
activesupport (~> 3.0)
railties (~> 3.0)
@ -131,7 +131,7 @@ GEM
sqlite3 (>= 1.3.3)
term-ansicolor (1.0.5)
thor (0.14.6)
tilt (1.3.1)
tilt (1.3.2)
treetop (1.4.9)
polyglot (>= 0.3.1)
tzinfo (0.3.27)
@ -140,7 +140,7 @@ PLATFORMS
ruby
DEPENDENCIES
appraisal (~> 0.3.1)
appraisal (~> 0.3.3)
cucumber (~> 0.10.0)
mocha (~> 0.9.10)
rails (= 3.1.0.rc1)

View file

@ -23,7 +23,7 @@ Gem::Specification.new do |s|
s.add_development_dependency("mocha", "~> 0.9.10")
s.add_development_dependency("rspec-rails", "~> 2.6.1.beta1")
s.add_development_dependency("cucumber", "~> 0.10.0")
s.add_development_dependency("appraisal", "~> 0.3.1")
s.add_development_dependency("appraisal", "~> 0.3.3")
if RUBY_VERSION >= "1.9"
s.add_development_dependency("ruby-debug19", "~> 0.11.6")