Sha256: c0ec746ef25eb14738dd9a84be5be390cf36a555fd8edac82e45e64d94d6c92f
Contents?: true
Size: 489 Bytes
Versions: 4
Compression:
Stored size: 489 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Attachy::Viewer, '.file_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 file button options' do expect(subject.file_button_options).to eq(class: :attachy__button) end end
Version data entries
4 entries across 4 versions & 1 rubygems