Sha256: ead7bfa112fc7d2fd2d654e610380809e8b911765f1b6094a786352112e57b65
Contents?: true
Size: 628 Bytes
Versions: 1
Compression:
Stored size: 628 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require 'rspec' require 'twitter_cldr' class FastGettext class << self def locale @@locale || :en end def locale=(value) @@locale = value end end end RSpec.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.1.0 | spec/spec_helper.rb |