Sha256: 642a14bf0a67ca705ba687decc7bc77c2e9bb6143c686c23749fbe5a24b45a4c

Contents?: true

Size: 491 Bytes

Versions: 11

Compression:

Stored size: 491 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)
        expect(klass.public_instance_methods.map(&:to_sym)).to include(:localize)
      end
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
twitter_cldr-3.1.1 spec/core_ext_spec.rb
twitter_cldr-3.1.0 spec/core_ext_spec.rb
twitter_cldr-3.0.10 spec/core_ext_spec.rb
twitter_cldr-3.0.9 spec/core_ext_spec.rb
twitter_cldr-3.0.8 spec/core_ext_spec.rb
twitter_cldr-3.0.7 spec/core_ext_spec.rb
twitter_cldr-3.0.6 spec/core_ext_spec.rb
twitter_cldr-3.0.5 spec/core_ext_spec.rb
twitter_cldr-3.0.4 spec/core_ext_spec.rb
twitter_cldr-3.0.3 spec/core_ext_spec.rb
twitter_cldr-3.0.2 spec/core_ext_spec.rb