Sha256: 54589700c647bdbd173117b7807bfbf94ca48624597152f61da0ca6912d49f43

Contents?: true

Size: 254 Bytes

Versions: 14

Compression:

Stored size: 254 Bytes

Contents

# frozen_string_literal: true

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

14 entries across 14 versions & 1 rubygems

Version Path
thinking-sphinx-5.4.0 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-5.3.0 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-5.2.1 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-5.2.0 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-5.1.0 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-5.0.0 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-4.4.1 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-4.4.0 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-4.3.2 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-4.3.1 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-4.3.0 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-4.2.0 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-4.1.0 spec/support/sphinx_yaml_helpers.rb
thinking-sphinx-4.0.0 spec/support/sphinx_yaml_helpers.rb