Sha256: bd02d40d18a07673ed93d5cb7d1ea19b211dbfd39a07d51312c3ff744438b6f1

Contents?: true

Size: 549 Bytes

Versions: 4

Compression:

Stored size: 549 Bytes

Contents

# $VERBOSE = true # ignore complaints in spec files

# ---- requirements
$LOAD_PATH.unshift File.expand_path("../lib", File.dirname(__FILE__))
require 'fast_gettext'

# ---- revert to defaults
RSpec.configure do |config|
  config.before do
    FastGettext.locale = 'de'
    FastGettext.available_locales = nil
  end
end

def default_setup
  FastGettext.add_text_domain('test',:path=>File.join(File.dirname(__FILE__),'locale'))
  FastGettext.text_domain = 'test'
  FastGettext.available_locales = ['en','de','gsw_CH']
  FastGettext.locale = 'de'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fast_gettext-0.6.11 spec/spec_helper.rb
fast_gettext-0.6.10 spec/spec_helper.rb
fast_gettext-0.6.9 spec/spec_helper.rb
fast_gettext-0.6.8 spec/spec_helper.rb