Sha256: 935f963331116c396b16c6d4fbf5d3f013cd5c4147043c264988279fa3cea2e6
Contents?: true
Size: 492 Bytes
Versions: 3
Compression:
Stored size: 492 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cloudinary-1.7.0 | spec/utils_methods_spec.rb |
cloudinary-1.6.0 | spec/utils_methods_spec.rb |
cloudinary-1.5.2 | spec/utils_methods_spec.rb |