Sha256: 473f2721811ac830bd6a4e6a436d71e3bf0c833ab7c41bcaa4160abd80601f95
Contents?: true
Size: 653 Bytes
Versions: 5
Compression:
Stored size: 653 Bytes
Contents
require "spec_helper" describe NPR::Entity::PullQuote do json_fixture do <<-JSON { "id": "162081891", "text": { "$text": "Unstructured time outdoors is becoming a thing of the past." }, "person": { "$text": "Chelsea Benson" }, "date": {} } JSON end before :each do @pull_quote = NPR::Entity::PullQuote.new(@fixture) end it "sets up attributes" do @pull_quote.id.should be_a Integer @pull_quote.text.should match /Unstructured/ @pull_quote.person.should match /Chelsea/ @pull_quote.date.should eq nil # no date information end end
Version data entries
5 entries across 5 versions & 1 rubygems