Sha256: 5d428b44ded9f5400107104c93d6147857099ae39442fed89a6650e50a4c3d1f

Contents?: true

Size: 450 Bytes

Versions: 3

Compression:

Stored size: 450 Bytes

Contents

require 'rails_helper'

RSpec.describe Attachy::Viewer, '.button_label_options' do
  let!(:object) { create :user }
  let!(:method) { :avatar }
  let(:file)    { create :file, attachable: object, scope: method }

  before { allow(Cloudinary::Uploader).to receive(:remove_tag) }

  subject { described_class.new method, object }

  it 'returns the default button label options' do
    expect(subject.button_label_options).to eq(text: '...')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
attachy-0.1.2 spec/models/attachy/viewer/button_label_options_spec.rb
attachy-0.1.1 spec/models/attachy/viewer/button_label_options_spec.rb
attachy-0.1.0 spec/models/attachy/viewer/button_label_options_spec.rb