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

Version Path
establish-0.0.33 spec/itunes_search_api_spec.rb
establish-0.0.32 spec/itunes_search_api_spec.rb
establish-0.0.31 spec/itunes_search_api_spec.rb
establish-0.0.30 spec/itunes_search_api_spec.rb
establish-0.0.29 spec/itunes_search_api_spec.rb
establish-0.0.28 spec/itunes_search_api_spec.rb
establish-0.0.27 spec/itunes_search_api_spec.rb
establish-0.0.26 spec/itunes_search_api_spec.rb
establish-0.0.25 spec/itunes_search_api_spec.rb
establish-0.0.24 spec/itunes_search_api_spec.rb
establish-0.0.23 spec/itunes_search_api_spec.rb
establish-0.0.22 spec/itunes_search_api_spec.rb