Rename Rakefile -> Rakefile.rb
This commit is contained in:
parent
072af73b1e
commit
be6a9ca2c1
@ -15,13 +15,15 @@ RSpec::Core::RakeTask.new(:spec, :example_pattern) do |task, args|
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
task :spec do |task, args|
|
task :spec do |task, args|
|
||||||
original_stdout = $stdout
|
unless ENV["dist_specs"]
|
||||||
sio = StringIO.new
|
original_stdout = $stdout
|
||||||
$stdout = sio
|
sio = StringIO.new
|
||||||
SimpleCov.collate Dir["coverage/.resultset.json"]
|
$stdout = sio
|
||||||
$stdout = original_stdout
|
SimpleCov.collate Dir["coverage/.resultset.json"]
|
||||||
sio.string.lines.each do |line|
|
$stdout = original_stdout
|
||||||
$stdout.write(line) unless line =~ /Coverage report generated for/
|
sio.string.lines.each do |line|
|
||||||
|
$stdout.write(line) unless line =~ /Coverage report generated for/
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user