gitlab-org--gitlab-foss/spec/models/board_spec.rb

15 lines
356 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'spec_helper'
2016-07-27 15:32:32 -04:00
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) }
2016-07-27 15:32:32 -04:00
end
describe 'validations' do
it { is_expected.to validate_presence_of(:project) }
end
end