sportngin / brew-gem

Install gems as homebrew formulas
MIT License
195 stars 21 forks source link

test suite fails (for surprising reasons) when rspec is run outside of bundle #44

Open jasonkarns opened 7 years ago

jasonkarns commented 7 years ago

10 of 13 specs fail when rspec is run outside the context of the bundle. https://gist.github.com/anonymous/79e94344c43d859f061f9edbc9942778

Not technically an issue because rspec should be run within the bundle. However, the errors are not what I would have expected:

NameError:
       uninitialized constant CleanEnv::Bundler
     # ./spec/support/aruba.rb:11:in `run'
     # ./spec/support/aruba.rb:27:in `run_complete'
     # ./spec/brew/gem_spec.rb:4:in `brew_gem'
     # ./spec/brew/gem_spec.rb:7:in `block (2 levels) in <top (required)>'
     # ./spec/brew/gem_spec.rb:34:in `block (3 levels) in <top (required)>'

I think it's worthwhile to investigate this error because it could be symptomatic of a deeper issue.