From eb2c3fd2e534cf8f217e1a13285c5f7f121212da Mon Sep 17 00:00:00 2001 From: ilya <ilya@laptop.(none)> Date: Mon, 21 Jun 2010 15:01:12 -0400 Subject: [PATCH] fixed one spec bug in bookmarks --- spec/models/bookmark_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/bookmark_spec.rb b/spec/models/bookmark_spec.rb index f46b05deae..4c9ecd9c87 100644 --- a/spec/models/bookmark_spec.rb +++ b/spec/models/bookmark_spec.rb @@ -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 -- GitLab