debian-mirror-gitlab/spec/models/chat_team_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
396 B
Ruby
Raw Normal View History

2019-07-07 11:18:12 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe ChatTeam do
2020-03-13 15:44:24 +05:30
let_it_be(:chat_team) { create(:chat_team) }
2021-09-30 23:02:18 +05:30
2018-03-17 18:26:18 +05:30
subject { chat_team }
2017-08-17 22:00:37 +05:30
# 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