Sha256: c9842d99ded641c99809325bd31fa58c4b24e079aca8d0fc3752255d54273bb4
Contents?: true
Size: 772 Bytes
Versions: 12
Compression:
Stored size: 772 Bytes
Contents
require "helper" describe SimpleCov::Configuration do let(:config_class) do Class.new do include SimpleCov::Configuration end end let(:config) { config_class.new } describe "#tracked_files" do context "when configured" do let(:glob) { "{app,lib}/**/*.rb" } before { config.track_files(glob) } it "returns the configured glob" do expect(config.tracked_files).to eq glob end context "and configured again with nil" do before { config.track_files(nil) } it "returns nil" do expect(config.tracked_files).to be_nil end end end context "when unconfigured" do it "returns nil" do expect(config.tracked_files).to be_nil end end end end
Version data entries
12 entries across 12 versions & 5 rubygems