diff --git a/spec/models/calculator_spec.rb b/spec/models/calculator_spec.rb index ed46e483f..de3911cba 100644 --- a/spec/models/calculator_spec.rb +++ b/spec/models/calculator_spec.rb @@ -29,12 +29,12 @@ it { is_expected.to validate_presence_of(:uk_name) } it { is_expected.to validate_length_of(:uk_name).is_at_least(3).is_at_most(50) } it { is_expected.to validate_uniqueness_of(:slug) } - it { is_expected.to allow_value('#123abc').for(:color) } - it { is_expected.to allow_value('#ABCDEF').for(:color) } - it { is_expected.not_to allow_value('123abc').for(:color) } - it { is_expected.not_to allow_value('#12345').for(:color) } - it { is_expected.not_to allow_value('#1234567').for(:color) } - it { is_expected.not_to allow_value('#GHIJKL').for(:color) } + it { is_expected.to allow_value("#123abc").for(:color) } + it { is_expected.to allow_value("#ABCDEF").for(:color) } + it { is_expected.not_to allow_value("123abc").for(:color) } + it { is_expected.not_to allow_value("#12345").for(:color) } + it { is_expected.not_to allow_value("#1234567").for(:color) } + it { is_expected.not_to allow_value("#GHIJKL").for(:color) } end describe "associations" do