Sha256: f8f48df85a873f2bde2b604be53c7fb0ad630ea1b0d37d390b9844119f9d9102
Contents?: true
Size: 471 Bytes
Versions: 4
Compression:
Stored size: 471 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Attachy::File, '.url' do let!(:file) { described_class.new public_id: :public_id } let!(:options) { { key: :value } } before do allow(file).to receive(:transform).with(options) { :transform } end it 'returns a cloudinary url' do expect(Cloudinary::Utils).to receive(:cloudinary_url).with('public_id', :transform) { :url } expect(file.url(key: :value)).to eq :url end end
Version data entries
4 entries across 4 versions & 1 rubygems