Sha256: 5b68736f925b3a3608c8d4291ac553638af2a1d9a9738e92cdf66855017cdcf7

Contents?: true

Size: 358 Bytes

Versions: 10

Compression:

Stored size: 358 Bytes

Contents

# encoding: UTF-8

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

require 'spec_helper'

include TwitterCldr::Formatters

describe PercentFormatter do
  before(:each) do
    @formatter = PercentFormatter.new(:locale => :da)
  end

  it "should format the number correctly" do
    @formatter.format(12).should == "12 %"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
twitter_cldr-1.6.2 spec/formatters/numbers/percent_formatter_spec.rb
twitter_cldr-1.6.1 spec/formatters/numbers/percent_formatter_spec.rb
twitter_cldr-1.6.0 spec/formatters/numbers/percent_formatter_spec.rb
twitter_cldr-1.5.0 spec/formatters/numbers/percent_formatter_spec.rb
twitter_cldr-1.4.1 spec/formatters/numbers/percent_formatter_spec.rb
twitter_cldr-1.4.0 spec/formatters/numbers/percent_formatter_spec.rb
twitter_cldr-1.3.6 spec/formatters/numbers/percent_formatter_spec.rb
twitter_cldr-1.3.0 spec/formatters/numbers/percent_formatter_spec.rb
twitter_cldr-1.2.0 spec/formatters/numbers/percent_formatter_spec.rb
twitter_cldr-1.1.0 spec/formatters/numbers/percent_formatter_spec.rb