Skip to content

Commit

Permalink
cop
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVajnagi committed Dec 3, 2024
1 parent 54959e9 commit bdb84cb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/models/calculator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdb84cb

Please sign in to comment.