|
|
|
@ -58,10 +58,9 @@ describe ::API::V3::Notifications::NotificationRepresenter, 'rendering' do |
|
|
|
|
let(:read_ian) { false } |
|
|
|
|
|
|
|
|
|
describe 'self link' do |
|
|
|
|
it_behaves_like 'has a titled link' do |
|
|
|
|
it_behaves_like 'has an untitled link' do |
|
|
|
|
let(:link) { 'self' } |
|
|
|
|
let(:href) { api_v3_paths.notification notification.id } |
|
|
|
|
let(:title) { notification.subject } |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
@ -102,10 +101,6 @@ describe ::API::V3::Notifications::NotificationRepresenter, 'rendering' do |
|
|
|
|
let(:value) { notification.id } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'property', :subject do |
|
|
|
|
let(:value) { notification.subject } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'property', :reason do |
|
|
|
|
let(:value) { notification.reason } |
|
|
|
|
end |
|
|
|
|