diaspora/spec/helpers/publics_helper_spec.rb
2010-10-29 15:53:21 -07:00

18 lines
464 B
Ruby

# Copyright (c) 2010, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require 'spec_helper'
describe PublicsHelper do
before do
@user = make_user
@person = Factory.create(:person)
end
it 'should be able to give me the terse url for webfinger' do
@user.person.url = "http://example.com/"
terse_url( @user.person.url ).should == 'example.com'
end
end