Properly suppressing output and testing progress bar
This commit is contained in:
@@ -6,6 +6,8 @@ describe Squib do
|
||||
|
||||
context "all samples run without error" do
|
||||
it "should execute with no errors" do
|
||||
p = double("ProgressBar")
|
||||
allow(ProgressBar).to receive(:create).and_return(Squib::DoNothing.new)
|
||||
samples = File.expand_path('../samples', File.dirname(__FILE__))
|
||||
Dir["#{samples}/**/*.rb"].each do |sample|
|
||||
Dir.chdir(samples) do #to save to _output
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
require 'simplecov'
|
||||
require 'coveralls'
|
||||
|
||||
ENV['IN_TEST']="true"
|
||||
|
||||
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
||||
SimpleCov::Formatter::HTMLFormatter,
|
||||
Coveralls::SimpleCov::Formatter
|
||||
|
||||
Reference in New Issue
Block a user