Skip to content

Commit

Permalink
Ajout un test pour Campagne Helper
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneCharignon committed Sep 16, 2024
1 parent ffd19bf commit 7963a7c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/helpers/campagne_helper_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

require 'rails_helper'

describe CampagneHelper do
describe '#url_campagne' do
it 'echape le code campagne' do
stub_const('::URL_CLIENT', 'https://URL_CLIENT')
expect(url_campagne('CODE')).to eq('https://URL_CLIENT?code=CODE')
expect(url_campagne('CODE 2')).to eq('https://URL_CLIENT?code=CODE%202')
end
end
end

0 comments on commit 7963a7c

Please sign in to comment.