19ff9d9899
rails_helper.rb's only logic was to require spec_helper.rb.
14 lines
356 B
Ruby
14 lines
356 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_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
|