Sha256: 635a88e6d142530d54310778c0d460a5643498d00d35ffcf62412f049dc800f9

Contents?: true

Size: 903 Bytes

Versions: 1

Compression:

Stored size: 903 Bytes

Contents

require 'spec_helper'

describe App do

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

      app, expected, data = create_fake_app

      app.name.should          == expected[:name]
      app.icon_urls.should     == expected[:icon_urls]
      app.summary.should       == expected[:summary]
      app.price.should         == expected[:price]
      app.rights.should        == expected[:rights]
      app.display_name.should  == expected[:title]
      app.link.should          == expected[:link]
      app.preview.should       == expected[:preview]
      app.itunes_url.should    == expected[:itunes_url]
      app.developer.should     == expected[:developer]
      app.category.should      == expected[:category]

      date_diff = app.release_date - expected[:release_date]
      date_diff.abs.should <= 1

      app.itunes_id.should     == expected[:itunes_id]

    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apprank-0.0.1 spec/app_spec.rb