Sha256: 34734a0ae64a9b832c2c43f66831c481764dc6993d41a37c99eebdffbbf471ef
Contents?: true
Size: 764 Bytes
Versions: 5
Compression:
Stored size: 764 Bytes
Contents
require "spec_helper" describe TestNotifier::Stats, "RSpec 1" do subject(:stats) { TestNotifier::Stats.new(:spec) } it "returns success message" do stats.options = { :count => 10 } expect(stats.message).to eql("10 examples") end it "returns message with failing examples" do stats.options = { :count => 10, :failures => 5 } expect(stats.message).to eql("10 examples, 5 failed") end it "returns message with pending examples" do stats.options = { :count => 10, :pending => 5 } expect(stats.message).to eql("10 examples, 5 pending") end it "returns message with all types" do stats.options = { :count => 6, :failures => 2, :pending => 3 } expect(stats.message).to eql("6 examples, 2 failed, 3 pending") end end
Version data entries
5 entries across 5 versions & 1 rubygems