summaryrefslogtreecommitdiff
path: root/spec/models/chat_team_spec.rb
blob: 107fdaccc6819b87567e5417c13be0b8dfe96697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require 'spec_helper'

describe ChatTeam do
  let_it_be(:chat_team) { create(:chat_team) }
  subject { chat_team }

  # Associations
  it { is_expected.to belong_to(:namespace) }

  # Validations
  it { is_expected.to validate_uniqueness_of(:namespace) }

  # Fields
  it { is_expected.to respond_to(:name) }
  it { is_expected.to respond_to(:team_id) }
end