21 lines
542 B
Ruby
21 lines
542 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 ApplicationHelper do
|
|
before do
|
|
@user = make_user
|
|
@person = Factory.create(:person)
|
|
end
|
|
|
|
it "should provide a correct show path for a given person" do
|
|
person_url(@person).should == "/people/#{@person.id}"
|
|
end
|
|
|
|
it "should provide a correct show path for a given user" do
|
|
person_url(@user).should == "/users/#{@user.id}"
|
|
end
|
|
|
|
end
|