Sha256: 2c22df70e19d29b7b023b74fae621601d36639ab525b1e3bd0de950e77104209

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

require "spec_helper"

describe NPR::Entity::Transcript do
  json_fixture do
    <<-JSON
      {
      "link": {
        "type": "api",
        "$text": "http://api.npr.org/transcript?id=166480907&apiKey=MDA1OTI3MjQ5MDEyODUwMTE2MzM1YzNmZA004"
        }
      }
    JSON
  end

  before :each do
    @transcript = NPR::Entity::Transcript.new(@fixture)
  end

  it "creates relations" do
    @transcript.links[0].should be_a NPR::Entity::Link
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
npr-3.0.0 spec/unit/entity/transcript_spec.rb