Rakefile in dusen-0.2.1 vs Rakefile in dusen-0.2.2

- old
+ new

@@ -6,19 +6,21 @@ namespace :all do desc "Run specs on all spec apps" task :spec do + success = true for_each_directory_of('spec/**/Rakefile') do |directory| env = "SPEC=../../#{ENV['SPEC']} " if ENV['SPEC'] - system("cd #{directory} && #{env} bundle exec rake spec") + success &= system("cd #{directory} && #{env} bundle exec rake spec") end + fail "Tests failed" unless success end desc "Bundle all spec apps" task :bundle do for_each_directory_of('spec/**/Gemfile') do |directory| - system("cd #{directory} && bundle install") + system("cd #{directory} && rm -f Gemfile.lock && bundle install") end end end