mirror of
https://github.com/czhu12/canine.git
synced 2026-02-04 19:09:15 -06:00
13 lines
344 B
Ruby
13 lines
344 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.shared_context 'with mcp enabled' do
|
|
before do
|
|
allow(Flipper).to receive(:enabled?).and_call_original
|
|
allow(Flipper).to receive(:enabled?).with(:mcp_server, anything).and_return(true)
|
|
end
|
|
end
|
|
|
|
RSpec.configure do |config|
|
|
config.include_context 'with mcp enabled', file_path: %r{spec/mcp/}
|
|
end
|