diff options
Diffstat (limited to 'spec/lib/gitlab/tracking/destinations/snowplow_spec.rb')
-rw-r--r-- | spec/lib/gitlab/tracking/destinations/snowplow_spec.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/lib/gitlab/tracking/destinations/snowplow_spec.rb b/spec/lib/gitlab/tracking/destinations/snowplow_spec.rb index 0e8647ad78a..65597e6568d 100644 --- a/spec/lib/gitlab/tracking/destinations/snowplow_spec.rb +++ b/spec/lib/gitlab/tracking/destinations/snowplow_spec.rb @@ -41,21 +41,6 @@ RSpec.describe Gitlab::Tracking::Destinations::Snowplow do .with('category', 'action', 'label', 'property', 1.5, nil, (Time.now.to_f * 1000).to_i) end end - - describe '#self_describing_event' do - it 'sends event to tracker' do - allow(tracker).to receive(:track_self_describing_event).and_call_original - - subject.self_describing_event('iglu:com.gitlab/foo/jsonschema/1-0-0', data: { foo: 'bar' }) - - expect(tracker).to have_received(:track_self_describing_event) do |event, context, timestamp| - expect(event.to_json[:schema]).to eq('iglu:com.gitlab/foo/jsonschema/1-0-0') - expect(event.to_json[:data]).to eq(foo: 'bar') - expect(context).to eq(nil) - expect(timestamp).to eq((Time.now.to_f * 1000).to_i) - end - end - end end context 'when snowplow is not enabled' do @@ -66,13 +51,5 @@ RSpec.describe Gitlab::Tracking::Destinations::Snowplow do subject.event('category', 'action', label: 'label', property: 'property', value: 1.5) end end - - describe '#self_describing_event' do - it 'does not send event to tracker' do - expect_any_instance_of(SnowplowTracker::Tracker).not_to receive(:track_self_describing_event) - - subject.self_describing_event('iglu:com.gitlab/foo/jsonschema/1-0-0', data: { foo: 'bar' }) - end - end end end |