Merge branch 'stable' into develop
This commit is contained in:
commit
300376a854
3 changed files with 14 additions and 10 deletions
|
|
@ -37,6 +37,7 @@ Ruby 2.0 is no longer officially supported.
|
||||||
* Allow using common custom template for desktop & mobile landing page [#5915](https://github.com/diaspora/diaspora/pull/5915)
|
* Allow using common custom template for desktop & mobile landing page [#5915](https://github.com/diaspora/diaspora/pull/5915)
|
||||||
* Use correct branding in Atom feed [#5929](https://github.com/diaspora/diaspora/pull/5929)
|
* Use correct branding in Atom feed [#5929](https://github.com/diaspora/diaspora/pull/5929)
|
||||||
* Update the configurate gem to avoid issues by missed missing settings keys [#5934](https://github.com/diaspora/diaspora/pull/5934)
|
* Update the configurate gem to avoid issues by missed missing settings keys [#5934](https://github.com/diaspora/diaspora/pull/5934)
|
||||||
|
* ContactPresenter#full_hash_with_person did not contain relationship information [#5936](https://github.com/diaspora/diaspora/pull/5936)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
* Hide post title of limited post in comment notification email [#5843](https://github.com/diaspora/diaspora/pull/5843)
|
* Hide post title of limited post in comment notification email [#5843](https://github.com/diaspora/diaspora/pull/5843)
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,6 @@ class ContactPresenter < BasePresenter
|
||||||
end
|
end
|
||||||
|
|
||||||
def full_hash_with_person
|
def full_hash_with_person
|
||||||
full_hash.merge({person: PersonPresenter.new(person).full_hash_with_profile})
|
full_hash.merge(person: PersonPresenter.new(person, current_user).full_hash_with_profile)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,29 @@
|
||||||
require 'spec_helper'
|
require "spec_helper"
|
||||||
|
|
||||||
describe ContactPresenter do
|
describe ContactPresenter do
|
||||||
before do
|
before do
|
||||||
@presenter = ContactPresenter.new(alice.contact_for(bob.person))
|
@presenter = ContactPresenter.new(alice.contact_for(bob.person), alice)
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#base_hash' do
|
describe "#base_hash" do
|
||||||
it 'works' do
|
it "works" do
|
||||||
expect(@presenter.base_hash).to be_present
|
expect(@presenter.base_hash).to be_present
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#full_hash' do
|
describe "#full_hash" do
|
||||||
it 'works' do
|
it "works" do
|
||||||
expect(@presenter.full_hash).to be_present
|
expect(@presenter.full_hash).to be_present
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#full_hash_with_person' do
|
describe "#full_hash_with_person" do
|
||||||
it 'works' do
|
it "works" do
|
||||||
expect(@presenter.full_hash_with_person).to be_present
|
expect(@presenter.full_hash_with_person).to be_present
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
|
it "has relationship information" do
|
||||||
|
expect(@presenter.full_hash_with_person[:person][:relationship]).to be(:mutual)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue