Files
nairobi/spec/models/legislation/question_option_spec.rb
Javi Martín 5e8746f026 Remove question option uniqueness validation
Having translations makes this validation too complex and not worth the
effort, since now we can't just scope in a single column but we need to
scope in the translations locale and the question ID.
2018-10-22 16:36:18 +02:00

10 lines
242 B
Ruby

require 'rails_helper'
RSpec.describe Legislation::QuestionOption, type: :model do
let(:legislation_question_option) { build(:legislation_question_option) }
it "is valid" do
expect(legislation_question_option).to be_valid
end
end