mirror of https://github.com/tootsuite/mastodon
Re-introduce `application_id` in `ScheduledStatusSerializer`
parent
ee1cbda226
commit
3afc6554e9
|
@ -8,8 +8,4 @@ class REST::ScheduledStatusSerializer < ActiveModel::Serializer
|
||||||
def id
|
def id
|
||||||
object.id.to_s
|
object.id.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
def params
|
|
||||||
object.params.without('application_id')
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -16,8 +16,7 @@ RSpec.describe REST::ScheduledStatusSerializer do
|
||||||
it 'returns expected values and removes application_id from params' do
|
it 'returns expected values and removes application_id from params' do
|
||||||
expect(subject.deep_symbolize_keys)
|
expect(subject.deep_symbolize_keys)
|
||||||
.to include(
|
.to include(
|
||||||
scheduled_at: be_a(String).and(match_api_datetime_format),
|
scheduled_at: be_a(String).and(match_api_datetime_format)
|
||||||
params: not_include(:application_id)
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue