Sha256: b3781c5460d5e0a0e1c6b812dc0fb10fba02f7f27963a0180b4aca21d8abad7c

Contents?: true

Size: 585 Bytes

Versions: 5

Compression:

Stored size: 585 Bytes

Contents

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

# ---- revert to defaults
Spec::Runner.configure do |config|
  config.before :all do
    FastGettext.locale = 'de'
    FastGettext.available_locales = nil
  end
end

# ---- Helpers
def pending_it(text,&block)
  it text do
    pending(&block)
  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']
  FastGettext.locale = 'de'
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grosser-fast_gettext-0.3.8 spec/spec_helper.rb
grosser-fast_gettext-0.4.0 spec/spec_helper.rb
grosser-fast_gettext-0.4.2 spec/spec_helper.rb
grosser-fast_gettext-0.4.3 spec/spec_helper.rb
grosser-fast_gettext-0.4.4 spec/spec_helper.rb