2019-03-30 07:23:56 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-02-02 14:04:02 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 18:09:03 +00:00
|
|
|
RSpec.describe ChatTeam do
|
2020-02-12 15:09:37 +00:00
|
|
|
let_it_be(:chat_team) { create(:chat_team) }
|
2021-06-29 03:07:32 +00:00
|
|
|
|
2017-09-05 07:37:06 +00:00
|
|
|
subject { chat_team }
|
2017-03-07 14:20:22 +00:00
|
|
|
|
2017-02-02 14:04:02 +00:00
|
|
|
# Associations
|
2017-02-03 10:29:56 +00:00
|
|
|
it { is_expected.to belong_to(:namespace) }
|
2017-02-02 14:04:02 +00:00
|
|
|
|
2017-03-07 14:20:22 +00:00
|
|
|
# Validations
|
|
|
|
it { is_expected.to validate_uniqueness_of(:namespace) }
|
|
|
|
|
2017-02-02 14:04:02 +00:00
|
|
|
# Fields
|
|
|
|
it { is_expected.to respond_to(:name) }
|
|
|
|
it { is_expected.to respond_to(:team_id) }
|
|
|
|
end
|