Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.493 kb
# 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, Date, 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
Jump to Line
Something went wrong with that request. Please try again.