mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-28 19:10:31 +00:00
21 lines
402 B
Ruby
21 lines
402 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe REST::MarkerSerializer do
|
|
subject do
|
|
serialized_record_json(
|
|
marker,
|
|
described_class
|
|
)
|
|
end
|
|
|
|
let(:marker) { Fabricate :marker }
|
|
|
|
context 'when updated_at is populated' do
|
|
it 'parses as RFC 3339 datetime' do
|
|
expect { DateTime.rfc3339(subject['updated_at']) }.to_not raise_error
|
|
end
|
|
end
|
|
end
|