it'raise error if metrics are not in the same slot'do
expect{described_class.unique_events(event_names: [compliance_slot_event,analytics_slot_event],start_date: 4.weeks.ago,end_date: Date.current)}.toraise_error('Events should be in same slot')
end
it'raise error if metrics are not in the same slot'do
expect{described_class.unique_events(event_names: [compliance_slot_event,analytics_slot_event],start_date: 4.weeks.ago,end_date: Date.current)}.toraise_error('Events should be in same slot')
end
it'raise error if metrics are not in the same category'do
expect{described_class.unique_events(event_names: [category_analytics_event,category_productivity_event],start_date: 4.weeks.ago,end_date: Date.current)}.toraise_error('Events should be in same category')
end
it'raise error if metrics are not in the same category'do
expect{described_class.unique_events(event_names: [category_analytics_event,category_productivity_event],start_date: 4.weeks.ago,end_date: Date.current)}.toraise_error('Events should be in same category')
end
it"raise error if metrics don't have same aggregation"do
expect{described_class.unique_events(event_names: [daily_event,weekly_event],start_date: 4.weeks.ago,end_date: Date.current)}.toraise_error('Events should have same aggregation level')
end
it"raise error if metrics don't have same aggregation"do
expect{described_class.unique_events(event_names: [daily_event,weekly_event],start_date: 4.weeks.ago,end_date: Date.current)}.toraise_error('Events should have same aggregation level')