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