fix the contacts link for the multi stream; make the contacts link default to the contacts page
This commit is contained in:
parent
8a8f022f8b
commit
e087284daa
2 changed files with 6 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ class Stream::Base
|
|||
|
||||
# @return [String]
|
||||
def contacts_link
|
||||
'#'
|
||||
Rails.application.routes.url_helpers.contacts_path
|
||||
end
|
||||
|
||||
#helpers
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue