Sha256: 20e4348a83fb5d54e4e4d9c4a590475f19e778b87a0345c83e838b33d76ac4b7

Contents?: true

Size: 487 Bytes

Versions: 7

Compression:

Stored size: 487 Bytes

Contents

# encoding: UTF-8

# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0

require 'spec_helper'

describe 'Core classes localization' do

  [Array, Bignum, DateTime, Fixnum, Float, String, Symbol, Time].each do |klass|
    describe klass do
      it 'has public instance method #localize' do
        # convert methods names to symbols (they're strings in 1.8)
        klass.public_instance_methods.map(&:to_sym).should include(:localize)
      end
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
twitter_cldr-3.0.1 spec/core_ext_spec.rb
twitter_cldr-2.4.3 spec/core_ext_spec.rb
twitter_cldr-3.0.0 spec/core_ext_spec.rb
twitter_cldr-3.0.0.beta1 spec/core_ext_spec.rb
twitter_cldr-2.4.2 spec/core_ext_spec.rb
twitter_cldr-2.4.1 spec/core_ext_spec.rb
twitter_cldr-2.4.0 spec/core_ext_spec.rb