Sha256: c81cc283ae6cfff93c461f9a48680522223c59696ddc262b7d194a3031e1f660

Contents?: true

Size: 341 Bytes

Versions: 1

Compression:

Stored size: 341 Bytes

Contents

require 'spec_helper'

describe Rank do

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

      feed = create_fake_feed(100)
      rank = Rank.new({ :feed => feed }.to_json)
      rank.apps.length.should == 100
      rank.link.should == feed[:id][:href]
      (rank.updated - Time.now).abs.should < 10

    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apprank-0.0.1 spec/rank_spec.rb