Sha256: 01296912370198a39e0d5ad503086af018c7ef9cd55e151acae3af2bad1871fd
Contents?: true
Size: 466 Bytes
Versions: 4
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Attachy::Viewer, '.link_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 link options' do expect(subject.link_options).to eq(class: :attachy__link) end end
Version data entries
4 entries across 4 versions & 1 rubygems