Rakefile in sensible-cinema-0.6.0 vs Rakefile in sensible-cinema-0.6.1

- old
+ new

@@ -16,15 +16,20 @@ s.extensions = ["ext/mkrf_conf.rb"] end desc 'run all specs' task 'spec' do - success = true - for file in Dir['spec/*spec*.rb'] do - p file - if !system('cd spec & ' + OS.ruby_bin + " ../" + file) - success = false - break + failed = [] + Dir.chdir 'spec' do + for file in Dir['*spec*.rb'] do + if !system(OS.ruby_bin + " " + file) + failed << file + end end end - p 'all specs passed!' if success + if failed.length == 0 + p 'all specs passed!' + else + p 'at least one spec failed!', failed + end + end \ No newline at end of file