gitlab-org--gitlab-foss/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

# frozen_string_literal: true
2017-02-02 14:04:02 +00:00
require 'spec_helper'
RSpec.describe ChatTeam do
let_it_be(:chat_team) { create(:chat_team) }
subject { chat_team }
2017-03-07 14:20:22 +00:00
2017-02-02 14:04:02 +00:00
# Associations
2017-02-03 10:29:56 +00:00
it { is_expected.to belong_to(:namespace) }
2017-02-02 14:04:02 +00:00
2017-03-07 14:20:22 +00:00
# Validations
it { is_expected.to validate_uniqueness_of(:namespace) }
2017-02-02 14:04:02 +00:00
# Fields
it { is_expected.to respond_to(:name) }
it { is_expected.to respond_to(:team_id) }
end