Sha256: 9313698e949ca319421d9e137921a90f46ff814405bd0a8b932b278949f98e0c
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
require 'spec_helper' RSpec.describe Pluginscan::CheckFindings do describe "count" do subject(:check_findings) { Pluginscan::CheckFindings.new(check) } let(:check) { double('Check') } it "returns 0 when no issues were found" do expect(check_findings.count).to eq 0 end it "returns 3 when 3 issues were found" do finding = double('Finding') 3.times do check_findings.add [finding] end expect(check_findings.count).to eq 3 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pluginscan-0.9.0 | spec/pluginscan/issues_scanner/check_findings_spec.rb |