require File.expand_path('../../lib/urban_dictionary', __FILE__)

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.order = 'random'
end

module Test
  def self.load_fixture(name)
    File.read(File.expand_path("../html/#{name}", __FILE__))
  end
end

require File.expand_path('../../lib/urban_dictionary', __FILE__)

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.order = 'random'
end

module Test
  def self.load_fixture(name)
    File.read(File.expand_path("../html/#{name}", __FILE__))
  end
end

Fix RSpec 3.4 deprecation warning
Fix RSpec 3.4 deprecation warning

> Deprecation Warnings:
>
> RSpec::Core::Configuration#treat_symbols_as_metadata_keys_with_true_values =
> is deprecated, it is now set to true as default and setting it to false has
> no effect.
