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

Version Path
cloudinary-1.3.0 spec/utils_methods_spec.rb
cloudinary-1.2.4 spec/utils_methods_spec.rb
cloudinary-1.2.3 spec/utils_methods_spec.rb
cloudinary-1.2.2 spec/utils_methods_spec.rb
cloudinary-1.2.1 spec/utils_methods_spec.rb
cloudinary-1.2.0 spec/utils_methods_spec.rb
cloudinary-1.1.7 spec/utils_methods_spec.rb
cloudinary-1.1.6 spec/utils_methods_spec.rb
cloudinary-1.1.5 spec/utils_methods_spec.rb
cloudinary-1.1.4 spec/utils_methods_spec.rb
cloudinary-1.1.3 spec/utils_methods_spec.rb
cloudinary-1.1.2 spec/utils_methods_spec.rb
cloudinary-1.1.1 spec/utils_methods_spec.rb