Sha256: 1cc8a79eb03bb3d3765297057e75302c9cff10e332f4cbf9891a6aae5bce908a

Contents?: true

Size: 397 Bytes

Versions: 5

Compression:

Stored size: 397 Bytes

Contents

# encoding: UTF-8

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

require 'spec_helper'

include TwitterCldr

describe LocalizedArray do
  describe "#code_points_to_string" do
    it "transforms an array of code points into a string" do
      ["0074", "0077", "0069", "0074", "0074", "0065", "0072"].localize.code_points_to_string.should == "twitter"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
twitter_cldr-1.5.0 spec/core_ext/array_spec.rb
twitter_cldr-1.4.1 spec/core_ext/array_spec.rb
twitter_cldr-1.4.0 spec/core_ext/array_spec.rb
twitter_cldr-1.3.6 spec/core_ext/array_spec.rb
twitter_cldr-1.3.0 spec/core_ext/array_spec.rb