spec/unit/entity/related_link_spec.rb in npr-1.1.0 vs spec/unit/entity/related_link_spec.rb in npr-1.2.0
- old
+ new
@@ -20,35 +20,35 @@
}
]
}
JSON
end
-
+
#----------------------------
-
+
describe "relations" do
it "has links" do
related_link = NPR::Entity::RelatedLink.new(@fixture)
related_link.links.size.should eq 2
- related_link.links.first.should be_a NPR::Entity::Link
+ related_link.links.first.should be_a NPR::Entity::Link
end
end
#----------------------------
-
+
describe "attributes" do
before :each do
@related_link = NPR::Entity::RelatedLink.new(@fixture)
end
-
+
it "has a caption" do
@related_link.caption.should match /Ravi Shankar/
end
-
+
it "has a type" do
@related_link.type.should eq "internal"
end
-
+
it "has an id" do
@related_link.id.should be_a Integer
end
end
end