# 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