Browse Source

Condensed test

pull/2510/head
Manny Dinssa 2 years ago committed by Manny Dinssa
parent
commit
abb6447ae7
  1. 3
      spec/models/form/lettings/questions/location_id_spec.rb

3
spec/models/form/lettings/questions/location_id_spec.rb

@ -162,8 +162,7 @@ RSpec.describe Form::Lettings::Questions::LocationId, type: :model do
end end
it "orders the locations by name then numerically" do it "orders the locations by name then numerically" do
displayed_locations = question.displayed_answer_options(lettings_log) expect(question.displayed_answer_options(lettings_log).values.map { |v| v["hint"] }).to eq([
expect(displayed_locations.values.map { |v| v["hint"] }).to eq([
"Abacus Road", "Abacus Road",
"1 Abe Road", "1 Abe Road",
"2 Abe Road", "2 Abe Road",

Loading…
Cancel
Save