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 09:04:02 -05:00
require 'spec_helper'
RSpec.describe ChatTeam do
let_it_be(:chat_team) { create(:chat_team) }
subject { chat_team }
2017-03-07 09:20:22 -05:00
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