gitlab-org--gitlab-foss/spec/models/project_services/chat_service_spec.rb

16 lines
325 B
Ruby
Raw Normal View History

2016-11-18 04:00:40 -05:00
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