debian-mirror-gitlab/spec/models/chat_team_spec.rb
2018-03-17 18:26:18 +05:30

16 lines
352 B
Ruby

require 'spec_helper'
describe ChatTeam do
set(:chat_team) { create(:chat_team) }
subject { chat_team }
# 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