script/test in nunes-0.4.0 vs script/test in nunes-0.5.0

- old
+ new

@@ -1,25 +1,22 @@ #!/bin/sh -#/ Usage: test [individual test file] +#/ Usage: test #/ -#/ Bootstrap and run all tests or an individual test. +#/ Bootstrap and run all tests. #/ -#/ Examples: -#/ -#/ # run all tests -#/ test -#/ -#/ # run individual test -#/ test test/controller_instrumentation_test.rb -#/ set -e cd $(dirname "$0")/.. [ "$1" = "--help" -o "$1" = "-h" -o "$1" = "help" ] && { grep '^#/' <"$0"| cut -c4- exit 0 } -script/bootstrap && ruby -I lib -I test -r rubygems \ - -e 'require "bundler/setup"' \ - -e '(ARGV.empty? ? Dir["test/**/*_test.rb"] : ARGV).each { |f| load f }' -- "$@" +export RAILS_VERSION=5.0.0 +script/bootstrap || bundle update +bundle exec rake + + +export RAILS_VERSION=4.2.5 +script/bootstrap || bundle update +bundle exec rake