spec/unit/entity/book_spec.rb in npr-1.1.0 vs spec/unit/entity/book_spec.rb in npr-1.2.0
- old
+ new
@@ -13,19 +13,19 @@
"$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