Sha256: 4bd827bbc718210f46d6267156a534479f26a4b773b112f82b14d83c42db8cd6

Contents?: true

Size: 405 Bytes

Versions: 13

Compression:

Stored size: 405 Bytes

Contents

require 'spec_helper'
require 'cloudinary'

describe Cloudinary do
  before :all do
    @user_platform = Cloudinary.user_platform
  end
  after :all do
    Cloudinary.user_platform = @user_platform
  end

  it 'should add a user platform to USER_AGENT' do
    Cloudinary.user_platform = "Spec/1.0 (Test)"
    expect(Cloudinary.USER_AGENT).to match( %r"Spec\/1.0 \(Test\) CloudinaryRuby/[\d.]+")

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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