Sha256: d4fe046170681a083f09823b5d8ef2c49831c45ddc15b79b158f48fc1ff068c6
Contents?: true
Size: 649 Bytes
Versions: 12
Compression:
Stored size: 649 Bytes
Contents
describe Establish do describe Establish::ItunesSearchApi do it "returns nil when it could not be found" do Establish::ItunesSearchApi.fetch("invalid").should eq(nil) Establish::ItunesSearchApi.fetch("").should eq(nil) Establish::ItunesSearchApi.fetch(0).should eq(nil) end it "returns the actual object if it could be found" do response = Establish::ItunesSearchApi.fetch("284882215") response['kind'].should eq('software') response['supportedDevices'].count.should be > 8 Establish::ItunesSearchApi.fetch_bundle_identifier("284882215").should eq('com.facebook.Facebook') end end end
Version data entries
12 entries across 12 versions & 1 rubygems