Commit db33b61a authored by orozot's avatar orozot

Add unit test for trials_link_url

Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/350838
Changelog: changed
EE: true
parent 5de1b0a2
......@@ -462,5 +462,11 @@ RSpec.describe EE::Users::CalloutsHelper do
it { is_expected.to eq(false) }
end
end
describe '#trials_link_url' do
it 'returns value of glm_source is gitlab.com' do
expect(helper.send(:trials_link_url)).to eq('/-/trial_registrations/new?glm_content=gold-callout&glm_source=gitlab.com')
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment