diff options
author | Luke Bennett <lbennett@gitlab.com> | 2019-06-05 16:28:41 +0000 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-06-05 16:28:41 +0000 |
commit | 0b0f39c5737265eb796040d13f6411f0c6b17708 (patch) | |
tree | 6c1ebf7e4cdaadcaab38cedfbe4dc77c2ab82824 /spec | |
parent | 327c7d5a07fa08276a52b6a2bfdf79eee812a2cd (diff) | |
download | gitlab-ce-0b0f39c5737265eb796040d13f6411f0c6b17708.tar.gz |
Add snowplow haml attr helper
Helps build a hash of snowplow tracking data attrs.
Updates import project pane to use new helper.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/helpers/tracking_helper_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/helpers/tracking_helper_spec.rb b/spec/helpers/tracking_helper_spec.rb new file mode 100644 index 00000000000..71505e8ea69 --- /dev/null +++ b/spec/helpers/tracking_helper_spec.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe TrackingHelper do + describe '#tracking_attrs' do + it 'returns an empty hash' do + expect(helper.tracking_attrs('a', 'b', 'c')).to eq({}) + end + end +end |