Sha256: 12e34b46f63d7255603716a90cde0391510b58a9314e63748d005df9a3c1c7c3

Contents?: true

Size: 223 Bytes

Versions: 4

Compression:

Stored size: 223 Bytes

Contents

module SphinxYamlHelpers
  def write_configuration(hash)
    allow(File).to receive_messages :read => {'test' => hash}.to_yaml, :exists? => true
  end
end

RSpec.configure do |config|
  config.include SphinxYamlHelpers
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thinking-sphinx-3.4.2 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-3.4.1 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-3.4.0 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-3.3.0 spec/support/sphinx_yaml_helpers.rb