Browse Source

Spec check answers label lookup

pull/653/head
baarkerlounger 3 years ago
parent
commit
22d1f7d7e4
  1. 4
      spec/models/form/question_spec.rb

4
spec/models/form/question_spec.rb

@ -195,6 +195,10 @@ RSpec.describe Form::Question, type: :model do
it "can correctly lookup the data" do
expect(question.answer_options).to eq(expected_answer_options)
end
it "can correctly determine the value labels" do
expect(question.label_from_value(org1.id)).to eq(org1.name)
end
end
end

Loading…
Cancel
Save