blob: 9b52c30a4707a22358c5276760f299d46c4cd9a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# 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 = Factory.create(: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
|