spec/unit/entity/byline_spec.rb in npr-1.1.0 vs spec/unit/entity/byline_spec.rb in npr-1.2.0
- old
+ new
@@ -20,19 +20,19 @@
}
]
}
JSON
end
-
+
before :each do
@byline = NPR::Entity::Byline.new(@fixture)
end
-
+
it "sets up attributes" do
@byline.id.should be_a Fixnum
@byline.id.should_not eq 0
end
-
+
it "creates relations" do
@byline.links.size.should eq 2
@byline.links.first.should be_a NPR::Entity::Link
@byline.name.should be_a NPR::Entity::Name
end