Sha256: 4e49c0557468f386ce12f27d126471da61434a6754da4b1ef55e9db5c45be237
Contents?: true
Size: 551 Bytes
Versions: 4
Compression:
Stored size: 551 Bytes
Contents
require "spec_helper" describe NPR::Entity::Book do json_fixture do <<-JSON { "id": "153611337", "title": { "$text": "2312" }, "link": { "type": "short", "$text": "http://n.pr/LdlQZZ" } } JSON end before :each do @book = NPR::Entity::Book.new(@fixture) end it "sets up attributes" do @book.id.should eq 153611337 @book.title.should eq "2312" end it "creates relations" do @book.link.should be_a NPR::Entity::Link end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
npr-1.1.0 | spec/unit/entity/book_spec.rb |
npr-0.1.2 | spec/unit/entity/book_spec.rb |
npr-0.1.1 | spec/unit/entity/book_spec.rb |
npr-0.1.0 | spec/unit/entity/book_spec.rb |