BigW Consortium Gitlab

board_spec.rb 326 Bytes
Newer Older
1 2 3 4 5
require 'rails_helper'

describe Board do
  describe 'relationships' do
    it { is_expected.to belong_to(:project) }
6
    it { is_expected.to have_many(:lists).order(list_type: :asc, position: :asc).dependent(:delete_all) }
7 8 9 10 11 12
  end

  describe 'validations' do
    it { is_expected.to validate_presence_of(:project) }
  end
end