Sha256: dac095f3adf963d6e504de0cbc02a7caf09974a09ad4dccecb321dc4082402a2

Contents?: true

Size: 447 Bytes

Versions: 4

Compression:

Stored size: 447 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.link.should be_a NPR::Entity::Link
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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