BigW Consortium Gitlab

chat_team_spec.rb 334 Bytes
Newer Older
1 2 3
require 'spec_helper'

describe ChatTeam, type: :model do
4 5
  subject { create(:chat_team) }

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

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

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