7d4da81272
* install rubocop * 1961 automatic rubocop fixes * update rubocop.yml to ignore half of the remaining cops * rubocop lint warnings * random other warnings fixed
8 lines
306 B
Ruby
8 lines
306 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe Map, type: :model do
|
|
it { is_expected.to belong_to :user }
|
|
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) }
|
|
end
|