summaryrefslogtreecommitdiff
path: root/spec/models/board_spec.rb
blob: 12d29540137c41dbf643f2a3b24562a61c0afce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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