Files
canine/spec/support/shared_contexts/mcp_tools.rb
2026-01-05 13:49:42 -08:00

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