Sha256: b8c8f70d5472f5aaefdb17d8e79bf0f8ed9c2b935d25ca5e551d0fd75d056c1c
Contents?: true
Size: 700 Bytes
Versions: 1
Compression:
Stored size: 700 Bytes
Contents
shared_examples_for "a license matcher" do describe "#matches?" do context "when a license text template exists" do before do stub(subject.class).license_text { 'AWESOME "FOO" LICENSE' } end it "should return true if the body matches exactly" do subject.text = 'AWESOME "FOO" LICENSE' should be_matches end it "should return false if the body does not match at all" do subject.text = "hi" should_not be_matches end it "should return true if the body matches disregarding quote and new line differences" do subject.text = "AWESOME\n'FOO'\nLICENSE" should be_matches end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
license_finder-0.5.0 | spec/support/license_examples.rb |