chat_team_spec.rb 352 Bytes
Newer Older
1 2
require 'spec_helper'

3
describe ChatTeam do
4 5
  set(:chat_team) { create(:chat_team) }
  subject { chat_team }
6

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

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

13 14 15 16
  # Fields
  it { is_expected.to respond_to(:name) }
  it { is_expected.to respond_to(:team_id) }
end