spec/unit/entity/author_spec.rb in npr-1.1.0 vs spec/unit/entity/author_spec.rb in npr-1.2.0
- old
+ new
@@ -14,17 +14,17 @@
"$text": "http://api.npr.org/query?id=139197905&apiKey=MDA1OTI3MjQ5MDEyODUwMTE2MzM1YzNmZA004"
}
}
JSON
end
-
+
before :each do
@author = NPR::Entity::Author.new(@fixture)
end
-
+
it "sets attributes" do
@author.id.should eq 139197905
@author.num.should eq 3
@author.title.should match /Kim/
@author.link.should be_a NPR::Entity::Link
end
-end
\ No newline at end of file
+end