# frozen_string_literal: true require 'shared/rom/files/filesystem_setup' RSpec.shared_context 'gateway setup' do include_context 'filesystem setup' let(:configuration) { ROM::Configuration.new(:files, uri, extensions: %i[text markdown]) } let(:container) { ROM.container(configuration) } let(:gateway) { container.gateways[:default] } # @param [Pathname, #to_s] path # @return [Pathname] def P(path) # rubocop:disable Naming/MethodName Pathname(path) end end