Sha256: fb333ab8fbf20bfc258225499fc80007087a2029b94cbd78a1905f348e08a20f

Contents?: true

Size: 1.06 KB

Versions: 5

Compression:

Stored size: 1.06 KB

Contents

require "spec_helper"

describe NPR::Entity::PromoArt do
  json_fixture do
    <<-JSON
      {
        "id": "153610419",
        "type": "standard",
        "width": "200",
        "src": "http://media.npr.org/assets/bakertaylor/covers/a/after-the-apocalypse/9781931520294_custom-14e34b3b9f4a523765c08be02c4e1530607aa0e0.jpg?s=12",
        "bookEditionId": "153610403",
        "hasBorder": "false",
        "title": {
          "$text": "After the Apocalypse"
        },
        "caption": {},
        "link": {
          "url": ""
        },
        "producer": {},
        "provider": {
          "url": ""
        },
        "copyright": {
          "$text": "2011"
        },
        "crop": [
          {
            "type": "custom",
            "src": "http://media.npr.org/assets/bakertaylor/covers/a/after-the-apocalypse/9781931520294_custom-14e34b3b9f4a523765c08be02c4e1530607aa0e0.jpg",
            "height": "600",
            "width": "388"
          }
        ]
      }
    JSON
  end

  before :each do
    @promo_art = NPR::Entity::PromoArt.new(@fixture)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
npr-3.0.0 spec/unit/entity/promo_art_spec.rb
npr-2.0.2 spec/unit/entity/promo_art_spec.rb
npr-2.0.1 spec/unit/entity/promo_art_spec.rb
npr-2.0.0 spec/unit/entity/promo_art_spec.rb
npr-1.2.0 spec/unit/entity/promo_art_spec.rb