debian-mirror-gitlab/spec/lib/gitlab/chat_spec.rb

20 lines
489 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2019-07-07 11:18:12 +05:30
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe Gitlab::Chat, :use_clean_rails_memory_store_caching do
2019-07-07 11:18:12 +05:30
describe '.available?' do
it 'returns true when the chatops feature is available' do
2020-06-23 00:09:42 +05:30
stub_feature_flags(chatops: true)
2019-07-07 11:18:12 +05:30
expect(described_class).to be_available
end
it 'returns false when the chatops feature is not available' do
2020-06-23 00:09:42 +05:30
stub_feature_flags(chatops: false)
2019-07-07 11:18:12 +05:30
expect(described_class).not_to be_available
end
end
end