gitlab-org--gitlab-foss/spec/models/board_spec.rb
2016-08-17 12:58:57 -03:00

12 lines
326 B
Ruby

require 'rails_helper'
describe Board do
describe 'relationships' do
it { is_expected.to belong_to(:project) }
it { is_expected.to have_many(:lists).order(list_type: :asc, position: :asc).dependent(:delete_all) }
end
describe 'validations' do
it { is_expected.to validate_presence_of(:project) }
end
end