Sha256: 6d9ef62b7b177df0f2b58ba07223a78a8e0e304f58bb0d3a57f8631978f39c63
Contents?: true
Size: 631 Bytes
Versions: 2
Compression:
Stored size: 631 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe "testing for regressions" do it "should not fail if an initial hash is specified" do lambda { Lookup.search("v2.3.8 #today?") }.should_not raise_error end it "must have an API specified" do lambda { Lookup.search("ActiveRecord::Base") }.should raise_error(Lookup::APINotFound) end it "must have a valid URL" do Lookup.search("1.9 Array#shuffle").first.url.scan("http").size.should eql(1) end it "must have an API specified for constant + method" do lambda { Lookup.search("String#=~") }.should raise_error(Lookup::APINotFound) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lookup-1.1.4 | spec/regressions_spec.rb |
lookup-1.1.3 | spec/regressions_spec.rb |