summaryrefslogtreecommitdiff
path: root/spec/serializers/analytics/cycle_analytics/stage_entity_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/serializers/analytics/cycle_analytics/stage_entity_spec.rb')
-rw-r--r--spec/serializers/analytics/cycle_analytics/stage_entity_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/serializers/analytics/cycle_analytics/stage_entity_spec.rb b/spec/serializers/analytics/cycle_analytics/stage_entity_spec.rb
index 90cc7f7827b..8b45e8a64fc 100644
--- a/spec/serializers/analytics/cycle_analytics/stage_entity_spec.rb
+++ b/spec/serializers/analytics/cycle_analytics/stage_entity_spec.rb
@@ -11,4 +11,12 @@ RSpec.describe Analytics::CycleAnalytics::StageEntity do
expect(entity_json).to have_key(:start_event_html_description)
expect(entity_json).to have_key(:end_event_html_description)
end
+
+ it 'exposes start_event and end_event objects' do
+ expect(entity_json[:start_event][:identifier]).to eq(entity_json[:start_event_identifier])
+ expect(entity_json[:end_event][:identifier]).to eq(entity_json[:end_event_identifier])
+
+ expect(entity_json[:start_event][:html_description]).to eq(entity_json[:start_event_html_description])
+ expect(entity_json[:end_event][:html_description]).to eq(entity_json[:end_event_html_description])
+ end
end