Skip to content

Commit

Permalink
[ci] Improve Kiwi::Repository validations spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Moises Deniz Aleman committed Jul 24, 2017
1 parent 55f066b commit 1320eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/spec/models/kiwi/repository_spec.rb
Expand Up @@ -75,7 +75,7 @@
end
end

it { is_expected.to validate_inclusion_of(:repo_type).in_array(%w(apt-deb rpm-dir rpm-md yast2)) }
it { is_expected.to validate_inclusion_of(:repo_type).in_array(Kiwi::Repository::REPO_TYPES) }
it { is_expected.to validate_numericality_of(:priority).is_greater_than_or_equal_to(0).is_less_than(100) }
it { is_expected.to validate_numericality_of(:order).is_greater_than_or_equal_to(1) }
it { is_expected.to allow_value(nil).for(:imageinclude) }
Expand Down

0 comments on commit 1320eb7

Please sign in to comment.