can't properly use rspec on a boolean field validation

This commit is contained in:
Devin Howard 2015-12-18 09:28:08 +08:00
parent 4b22a856c3
commit acd048bd0d

View file

@ -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 }