fixed one spec bug in bookmarks

This commit is contained in:
ilya 2010-06-21 15:01:12 -04:00
parent 768ddb1c37
commit eb2c3fd2e5

View file

@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/../spec_helper'
describe Bookmark do
describe Bookmark do
it "should have a link" do
bookmark = Factory.build(:bookmark, :link => nil)
bookmark.valid?.should be false
@ -61,7 +61,7 @@ describe Bookmark do
describe "XML" do
it 'should serialize to XML' do
Factory.create(:user)
message = Factory.create(:bookmark, :title => "Reddit", :link => "http://reddit.com")
message = Factory.create(:bookmark, :title => "Reddit", :link => "http://reddit.com/")
message.to_xml.to_s.should include "<title>Reddit</title>"
message.to_xml.to_s.should include "<link>http://reddit.com/</link>"
end