Enable Style/UnneededInterpolation
This commit is contained in:
parent
82f0df089d
commit
ed240cb4d3
7 changed files with 10 additions and 10 deletions
|
@ -15,7 +15,7 @@ describe Champs::DossierLinkController, type: :controller do
|
|||
{
|
||||
dossier: {
|
||||
champs_attributes: {
|
||||
'1' => { value: "#{dossier_id}" }
|
||||
'1' => { value: dossier_id.to_s }
|
||||
}
|
||||
},
|
||||
position: '1'
|
||||
|
|
|
@ -10,7 +10,7 @@ describe Champs::SiretController, type: :controller do
|
|||
{
|
||||
dossier: {
|
||||
champs_attributes: {
|
||||
'1' => { value: "#{siret}" }
|
||||
'1' => { value: siret.to_s }
|
||||
}
|
||||
},
|
||||
position: '1'
|
||||
|
|
|
@ -165,8 +165,8 @@ describe StatsController, type: :controller do
|
|||
Dossier.update_all(state: Dossier.states.fetch(:accepte))
|
||||
|
||||
@expected_hash = {
|
||||
"#{2.months.ago.beginning_of_month}" => 3.0,
|
||||
"#{1.month.ago.beginning_of_month}" => 5.0
|
||||
(2.months.ago.beginning_of_month).to_s => 3.0,
|
||||
(1.month.ago.beginning_of_month).to_s => 5.0
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -217,8 +217,8 @@ describe StatsController, type: :controller do
|
|||
Dossier.update_all(state: Dossier.states.fetch(:accepte))
|
||||
|
||||
@expected_hash = {
|
||||
"#{2.months.ago.beginning_of_month}" => 30.0,
|
||||
"#{1.month.ago.beginning_of_month}" => 50.0
|
||||
(2.months.ago.beginning_of_month).to_s => 30.0,
|
||||
(1.month.ago.beginning_of_month).to_s => 50.0
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ describe SupportController, type: :controller do
|
|||
get :index, params: { dossier_id: dossier.id }
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.body).to include("#{dossier.id}")
|
||||
expect(response.body).to include((dossier.id).to_s)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue