Browse Source

change percent to % so that suffix is consistent with other similar questions

pull/1235/head
Arthur Campbell 3 years ago
parent
commit
2acc3bd54a
  1. 2
      app/models/form/sales/questions/staircase_bought.rb
  2. 2
      app/models/form/sales/questions/staircase_owned.rb
  3. 2
      spec/models/form/sales/questions/staircase_bought_spec.rb
  4. 2
      spec/models/form/sales/questions/staircase_owned_spec.rb

2
app/models/form/sales/questions/staircase_bought.rb

@ -8,6 +8,6 @@ class Form::Sales::Questions::StaircaseBought < ::Form::Question
@width = 5
@min = 0
@max = 100
@suffix = " percent"
@suffix = "%"
end
end

2
app/models/form/sales/questions/staircase_owned.rb

@ -8,6 +8,6 @@ class Form::Sales::Questions::StaircaseOwned < ::Form::Question
@width = 5
@min = 0
@max = 100
@suffix = " percent"
@suffix = "%"
end
end

2
spec/models/form/sales/questions/staircase_bought_spec.rb

@ -44,7 +44,7 @@ RSpec.describe Form::Sales::Questions::StaircaseBought, type: :model do
end
it "has correct suffix" do
expect(question.suffix).to eq(" percent")
expect(question.suffix).to eq("%")
end
it "has correct min" do

2
spec/models/form/sales/questions/staircase_owned_spec.rb

@ -44,7 +44,7 @@ RSpec.describe Form::Sales::Questions::StaircaseOwned, type: :model do
end
it "has correct suffix" do
expect(question.suffix).to eq(" percent")
expect(question.suffix).to eq("%")
end
it "has correct min" do

Loading…
Cancel
Save