can't properly use rspec on a boolean field validation
This commit is contained in:
parent
4b22a856c3
commit
acd048bd0d
1 changed files with 0 additions and 1 deletions
|
@ -6,7 +6,6 @@ RSpec.describe Map, type: :model do
|
|||
it { is_expected.to validate_presence_of :name }
|
||||
it { is_expected.to validate_presence_of :permission }
|
||||
it { is_expected.to validate_inclusion_of(:permission).in_array Perm::ISSIONS.map(&:to_s) }
|
||||
it { is_expected.to validate_inclusion_of(:arranged).in_array [true, false] }
|
||||
|
||||
context 'permissions' do
|
||||
let(:owner) { create :user }
|
||||
|
|
Loading…
Reference in a new issue