Skip to content

Instantly share code, notes, and snippets.

@chrisortman
Created February 25, 2016 15:26
Show Gist options
  • Save chrisortman/a9c9c1d193cd401dc9a2 to your computer and use it in GitHub Desktop.
Save chrisortman/a9c9c1d193cd401dc9a2 to your computer and use it in GitHub Desktop.
Simple script for running an rspec test during git-bisect
set +e
RAILS_ENV=test bundle exec rake db:schema:load
bundle exec rspec spec/models/arm/create_line_items_visit_spec.rb:57
test_result=$?
echo Test complete
git checkout HEAD Gemfile.lock
exit $test_result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment