test: fix for mutable string
This commit is contained in:
parent
6d9a7648e2
commit
659d35e11f
6 changed files with 8 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
describe Siret, type: :model do
|
||||
subject { Siret.new(siret: siret) }
|
||||
subject { Siret.new(siret: siret.dup) } # .dup in order to simulate a non literal user string
|
||||
|
||||
context 'with no siret provided' do
|
||||
let(:siret) { '' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue