gitlab-org--gitlab-foss/spec/models/chat_team_spec.rb
2017-03-07 15:20:22 +01:00

15 lines
334 B
Ruby

require 'spec_helper'
describe ChatTeam, type: :model do
subject { create(: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