Skip to content

Commit

Permalink
Update Rakefile for verbose RSpec output
Browse files Browse the repository at this point in the history
  • Loading branch information
emboss committed Sep 16, 2012
1 parent 69d25e8 commit 49ee5ee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Rakefile
Expand Up @@ -10,7 +10,11 @@ def java?
!! (RUBY_PLATFORM =~ /java/)
end

task :default => :test
def rubinius?
!! (RUBY_ENGINE =~ /rbx/)
end

task :default => :spec

Rake::TestTask.new('test') do |test|
test.libs << 'lib'
Expand All @@ -20,6 +24,8 @@ end

RSpec::Core::RakeTask.new(:spec) do |spec|
spec.ruby_opts = ['--1.9'] if java?
spec.ruby_opts = ['-X19'] if rubinius?
spec.rspec_opts = ['-c', '--format d']
spec.verbose = true
spec.fail_on_error = true
end
Expand Down

0 comments on commit 49ee5ee

Please sign in to comment.