1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot_rails.git synced 2022-11-09 11:49:18 -05:00
thoughtbot--factory_bot_rails/features/step_definitions/appraisal.rb

12 lines
370 B
Ruby
Raw Permalink Normal View History

When(/^I run `([^"]+)` with a clean environment$/) do |command|
2018-09-28 22:34:23 -04:00
step <<~STEP
I successfully run `ruby -e 'system({"BUNDLE_GEMFILE" => nil, "DISABLE_SPRING" => "true"}, "#{command}")'`
STEP
end
When(/^I run `([^"]+)` with Spring enabled$/) do |command|
step <<~STEP
I successfully run `ruby -e 'system({"BUNDLE_GEMFILE" => nil}, "#{command}")'`
STEP
end