Skip to content

Commit

Permalink
Make sure sunspot_rails spec tasks report failure to the shell.
Browse files Browse the repository at this point in the history
  • Loading branch information
nz committed Aug 17, 2011
1 parent 779959f commit 07c8c0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
Gemfile.lock
vendor/bundle
sunspot/vendor/bundle
sunspot_rails/spec/rails2/vendor
sunspot_rails/spec/rails3/vendor
**/*/vendor/bundle
6 changes: 4 additions & 2 deletions sunspot_rails/dev_tasks/spec.rake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ namespace :spec do
ENV['RAILS_ROOT'] = 'spec/rails2'
require 'bundler'
Bundler.setup(:default, :test)
system "spec --color #{ENV['SPEC'] || 'spec'}"
success = system "spec --color #{ENV['SPEC'] || 'spec'}"
exit(success ? 0 : 1)
end

desc 'Run spec suite in Rails 3 application'
Expand All @@ -17,6 +18,7 @@ namespace :spec do
ENV['RAILS_ROOT'] = 'spec/rails3'
require 'bundler'
Bundler.setup(:default, :test)
system "rspec --color #{ENV['SPEC'] || 'spec'}"
success = system "rspec --color #{ENV['SPEC'] || 'spec'}"
exit(success ? 0 : 1)
end
end

0 comments on commit 07c8c0d

Please sign in to comment.