summaryrefslogtreecommitdiff
path: root/spec/models/project_services/chat_service_spec.rb
blob: c6a45a3e1be1f5c6354e8ec2552c8cc1f0e69089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'spec_helper'

describe ChatService, models: true do
  describe "Associations" do
    it { is_expected.to have_many :chat_names }
  end

  describe '#valid_token?' do
    subject { described_class.new }

    it 'is false as it has no token' do
      expect(subject.valid_token?('wer')).to be_falsey
    end
  end
end