Sha256: 68c9d7d2bbf8d9b7b7405ea86961b80bcfcf6d59f0c2cc72d3efc25ee87b3015

Contents?: true

Size: 496 Bytes

Versions: 22

Compression:

Stored size: 496 Bytes

Contents

describe "Numeric" do

  it "should have a #string_with_style method" do
    1000.string_with_style.should == NSNumberFormatter.localizedStringFromNumber(1000, numberStyle:NSNumberFormatterDecimalStyle)
    1000.string_with_style(:decimal).should == NSNumberFormatter.localizedStringFromNumber(1000, numberStyle:NSNumberFormatterDecimalStyle)
    1000.string_with_style(:currency).should == NSNumberFormatter.localizedStringFromNumber(1000, numberStyle:NSNumberFormatterCurrencyStyle)
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
sugarcube-4.0.0 spec/ios/numeric_spec.rb
sugarcube-3.5.0 spec/ios/numeric_spec.rb
sugarcube-3.4.2 spec/ios/numeric_spec.rb
sugarcube-3.4.1 spec/ios/numeric_spec.rb
sugarcube-3.4.0 spec/ios/numeric_spec.rb
sugarcube-3.3.7 spec/ios/numeric_spec.rb
sugarcube-3.3.6 spec/ios/numeric_spec.rb
sugarcube-3.3.5 spec/ios/numeric_spec.rb
sugarcube-3.3.4 spec/ios/numeric_spec.rb
sugarcube-3.3.3 spec/ios/numeric_spec.rb
sugarcube-3.3.2 spec/ios/numeric_spec.rb
sugarcube-3.3.1 spec/ios/numeric_spec.rb
sugarcube-3.3.0 spec/ios/numeric_spec.rb
sugarcube-3.2.0 spec/ios/numeric_spec.rb
sugarcube-3.1.1 spec/ios/numeric_spec.rb
sugarcube-3.1.0 spec/ios/numeric_spec.rb
sugarcube-3.0.8 spec/ios/numeric_spec.rb
sugarcube-3.0.7 spec/ios/numeric_spec.rb
sugarcube-3.0.6 spec/ios/numeric_spec.rb
sugarcube-3.0.5 spec/ios/numeric_spec.rb