Sha256: fdc6281a3356fbe570d485a669b4b5ac1ca67317b0fe29f6f9d8b582ef2a1e1a
Contents?: true
Size: 960 Bytes
Versions: 1
Compression:
Stored size: 960 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe TestNotifier::Stats, "RSpec" do subject(:stats) { TestNotifier::Stats.new(:rspec) } 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 error examples" do stats.options = {count: 10, failures: 5, errors: 5} expect(stats.message).to eql("10 examples, 5 failed, 5 errors") end it "returns message with all types" do stats.options = {count: 6, failures: 3, errors: 2, pending: 3} expect(stats.message).to eql("6 examples, 3 failed, 3 pending, 2 errors") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
test_notifier-2.1.0 | spec/stats/rspec_spec.rb |