Sha256: 0e3fea6c14374de6635bff5f1ae3540f9a2c15a538fb736d1f399dba9b69db23
Contents?: true
Size: 486 Bytes
Versions: 13
Compression:
Stored size: 486 Bytes
Contents
require 'rspec' require 'spec_helper' require 'cloudinary' include Cloudinary describe Utils do it 'should parse integer range values' do expect(Utils.instance_eval {norm_range_value("200")}).to eq( "200") end it "should parse float range values" do expect(Utils.instance_eval {norm_range_value("200.0")}).to eq("200.0"), "parse a float" end it "should parse a percent range value" do expect(Utils.instance_eval {norm_range_value("20p")}).to eq("20p") end end
Version data entries
13 entries across 13 versions & 1 rubygems