Rakefile in testrbl-0.1.13 vs Rakefile in testrbl-0.1.14

- old
+ new

@@ -1,9 +1,12 @@ +require 'bundler/setup' require 'bundler/gem_tasks' task :default do - # tests do not run with test-unit 1 since it defines testrb and overshadows 1.9s native testrb - raise "yes | gem uninstall -a test-unit && bundle" if `gem list test-unit | grep 'test-unit '` =~ /[\( ]1\./ + # tests do not run with test-unit 1.x.x since it defines testrb and overshadows 1.9s native testrb + if `which testrb`.include?("/gems/") + raise "tests do not run with test-unit 1.x.x installed\nyes | gem uninstall -a test-unit && bundle" + end sh "rspec spec/" end # extracted from https://github.com/grosser/project_template