Skip to content
Extraits de code Groupes Projets
Valider eb2c3fd2 rédigé par ilya's avatar ilya
Parcourir les fichiers

fixed one spec bug in bookmarks

parent 768ddb1c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter