gitlab-org--gitlab-foss/spec/models/chat_team_spec.rb

16 lines
334 B
Ruby
Raw Normal View History

2017-02-02 09:04:02 -05:00
require 'spec_helper'
describe ChatTeam, type: :model do
2017-03-07 09:20:22 -05:00
subject { create(:chat_team) }
2017-02-02 09:04:02 -05:00
# Associations
2017-02-03 05:29:56 -05:00
it { is_expected.to belong_to(:namespace) }
2017-02-02 09:04:02 -05:00
2017-03-07 09:20:22 -05:00
# Validations
it { is_expected.to validate_uniqueness_of(:namespace) }
2017-02-02 09:04:02 -05:00
# Fields
it { is_expected.to respond_to(:name) }
it { is_expected.to respond_to(:team_id) }
end