spec/google/book/entry_spec.rb in google-book-0.3.2 vs spec/google/book/entry_spec.rb in google-book-0.3.3
- old
+ new
@@ -146,9 +146,13 @@
'dc:publisher' => 'Publisher Univ'
})
entry.publisher.should eql 'Publisher University'
end
+
+ it "should return nil if there is no publisher" do
+ entry.publisher.should be_nil
+ end
end
describe "#title" do
it "should concatenate titles" do
entry.instance_variable_set(:@hash, {