/spec/spec_helper.rb

https://github.com/gioele/rack-i18n_best_langs · Ruby · 18 lines · 8 code · 6 blank · 4 comment · 0 complexity · 9332be18552157b5796f23287a9a32c2 MD5 · raw file

  1. # This is free software released into the public domain (CC0 license).
  2. #
  3. # See the `COPYING` file or <http://creativecommons.org/publicdomain/zero/1.0/>
  4. # for more details.
  5. LIB_DIR = File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib]))
  6. $LOAD_PATH.unshift(LIB_DIR) unless $LOAD_PATH.include?(LIB_DIR)
  7. require 'rack/i18n_best_langs'
  8. require 'rack/i18n_routes'
  9. require 'rack/test'
  10. include Rack::Test::Methods
  11. RSpec.configure do |config|
  12. end