Sha256: d9a4a39f5666db0ebbe2649f1a54582ff599930c3a2e276959f456974af1d817
Contents?: true
Size: 495 Bytes
Versions: 4
Compression:
Stored size: 495 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Attachy::Viewer, '.remove_button_options' do subject { described_class.new method, object } let!(:object) { create :user } let!(:method) { :avatar } let!(:file) do allow(Cloudinary::Uploader).to receive(:remove_tag) create :file, attachable: object, scope: method end it 'returns the default remove button options' do expect(subject.remove_button_options).to eq(class: :attachy__remove) end end
Version data entries
4 entries across 4 versions & 1 rubygems