Sha256: 32ec39a9f9640ef66a63aa6050effcad9136c8959cead01aa11739ef2fe58114
Contents?: true
Size: 1.55 KB
Versions: 2
Compression:
Stored size: 1.55 KB
Contents
require 'spec_helper' describe Coveralls do before do SimpleCov.stub(:start) stub_api_post Coveralls.testing = true end describe "#should_run?" do it "outputs to stdout when running locally" do Coveralls.testing = false Coveralls.run_locally = true silence do Coveralls.should_run? end end end describe "#wear!" do it "receives block" do ::SimpleCov.should_receive(:start) silence do subject.wear! do add_filter 's' end end end it "uses string" do ::SimpleCov.should_receive(:start).with 'test_frameworks' silence do subject.wear! 'test_frameworks' end end it "uses default" do ::SimpleCov.should_receive(:start).with silence do subject.wear! end ::SimpleCov.filters.map(&:filter_argument).should include 'vendor' end end describe "#wear_merged!" do it "sets formatter to nil" do ::SimpleCov.should_receive(:start).with silence do subject.wear_merged! end ::SimpleCov.formatter.should be_nil end end describe "#push!" do it "sends existings test results" do result = false silence do result = subject.push! end result.should be_true end end describe "#setup!" do it "sets SimpleCov adapter" do SimpleCovTmp = SimpleCov Object.send :remove_const, :SimpleCov silence { subject.setup! } SimpleCov = SimpleCovTmp end end after(:all) do setup_formatter end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coveralls-0.6.5 | spec/coveralls/coveralls_spec.rb |
coveralls-0.6.4 | spec/coveralls/coveralls_spec.rb |