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

19 lines
383 B
Ruby
Raw Normal View History

2019-05-18 00:54:41 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
require 'spec_helper'
2017-09-10 17:25:29 +05:30
describe ChatTeam do
2018-03-17 18:26:18 +05:30
set(:chat_team) { create(:chat_team) }
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