Welcome to mirror list, hosted at ThFree Co, Russian Federation.

publics_helper_spec.rb « helpers « spec - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 05322f099c97c36a90cbe64e332979712de6506a (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 = 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