Sha256: 430976f2f5384ee21762b302d8d348c235de9892a41585feabac54f1e0f18728
Contents?: true
Size: 491 Bytes
Versions: 4
Compression:
Stored size: 491 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cloudinary-1.8.3 | spec/utils_methods_spec.rb |
cloudinary-1.8.2 | spec/utils_methods_spec.rb |
cloudinary-1.8.1 | spec/utils_methods_spec.rb |
cloudinary-1.8.0 | spec/utils_methods_spec.rb |