Sha256: b1ec45f165e0228399f192e2f1c8dcd515358c617ad6918e9364d663dd160d13

Contents?: true

Size: 332 Bytes

Versions: 4

Compression:

Stored size: 332 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe User, ':remove_tmp_tag' do
  let!(:user) { create :user }

  it 'removes the tmp tag via api' do
    expect(Cloudinary::Uploader).to receive(:remove_tag).with(Attachy::TMP_TAG, ['public_id'])

    create :file, public_id: 'public_id', attachable: user
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
attachy-0.4.1 spec/models/attachy/callback/remove_tmp_tag_spec.rb
attachy-0.4.0 spec/models/attachy/callback/remove_tmp_tag_spec.rb
attachy-0.3.0 spec/models/attachy/callback/remove_tmp_tag_spec.rb
attachy-0.2.0 spec/models/attachy/callback/remove_tmp_tag_spec.rb