Sha256: cabd5cdb47b55cb21f83b8a78ed1615704c288b127275bb2e0a568534c688f40
Contents?: true
Size: 380 Bytes
Versions: 2
Compression:
Stored size: 380 Bytes
Contents
require "spec_helper" module LicenseFinder describe LicenseUrl do describe ".find_by_name" do subject { LicenseUrl } before do License.stub(:find_by_name).with("Foo"). and_return(double(:foo_license, url: "http://foo.license.com")) end specify { subject.find_by_name("Foo").should == "http://foo.license.com" } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
license_finder-1.0.0.0 | spec/lib/license_finder/license_url_spec.rb |
license_finder-1.0.0.0-java | spec/lib/license_finder/license_url_spec.rb |