fix the contacts link for the multi stream; make the contacts link default to the contacts page

This commit is contained in:
Maxwell Salzberg 2011-10-24 14:10:15 -07:00
parent 8a8f022f8b
commit e087284daa
2 changed files with 6 additions and 1 deletions

View file

@ -66,7 +66,7 @@ class Stream::Base
# @return [String]
def contacts_link
'#'
Rails.application.routes.url_helpers.contacts_path
end
#helpers

View file

@ -4,6 +4,11 @@ describe Stream::Base do
before do
@stream = Stream::Base.new(alice)
end
describe '#contacts_link' do
it 'should default to your contacts page' do
@stream.contacts_link.should =~ /contacts/
end
end
describe '.can_comment?' do
before do