Sha256: a0e6e97f8eb55f7f1b0824f697720c8aa2c79ba96ce92f961b66d110b1830439

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 Bytes

Contents

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.0 spec/spec_helper.rb