Sha256: 51941a9a91e46c9e7e4360fda50754fa949b2d1c52c1f3d678a5fe121b72f1b4

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

require 'spec_helper'

describe Rank do

  describe "when you load the data" do
    it "should get data" do

      data = SpecHelper.data
      rank = Rank.new(data)

      expect(rank.apps.length).to  eq(25)
      expect(rank.link).to         eq("https://itunes.apple.com/us/rss/topfreeapplications/limit=25/json")
      expect(rank.updated.to_i).to eq(1453708166)

    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
apprank-1.0.1 spec/rank_spec.rb
apprank-1.0.0 spec/rank_spec.rb