Sha256: 5599377c95b2b6430c9a21ca0c6abeea68d6c31f63e1ea51fd5881e9d930f3bc

Contents?: true

Size: 685 Bytes

Versions: 1

Compression:

Stored size: 685 Bytes

Contents

# encoding: UTF-8

require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib twitter_cldr]))
FIXTURE_DIR = File.expand_path(File.join(File.dirname(__FILE__), %w[fixtures]))

class FastGettext
  class << self
    def locale
      @@locale || :en
    end

    def locale=(value)
      @@locale = value
    end
  end
end

Spec::Runner.configure do |config|
  config.mock_with :rr

  config.before(:each) do
    FastGettext.locale = :en
  end
end

def check_token_list(got, expected)
  got.size.should == expected.size
  expected.each_with_index do |exp_hash, index|
    exp_hash.each_pair do |exp_key, exp_val|
      got[index].send(exp_key).should == exp_val
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter_cldr-1.0.1 spec/spec_helper.rb