Sha256: 87f96a8602e2a23a05d7000f08a1eea2ac8e4ccf970cbe6bb8884a2ab6238dd7
Contents?: true
Size: 435 Bytes
Versions: 3
Compression:
Stored size: 435 Bytes
Contents
require 'rails_helper' RSpec.describe Attachy::Viewer, '.link_options' do let!(:object) { create :user } let!(:method) { :avatar } let!(:file) do allow(Cloudinary::Uploader).to receive(:remove_tag) create :file, attachable: object, scope: method end subject { described_class.new method, object } it 'returns the default link options' do expect(subject.link_options).to eq(class: :attachy__link) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
attachy-0.1.2 | spec/models/attachy/viewer/link_options_spec.rb |
attachy-0.1.1 | spec/models/attachy/viewer/link_options_spec.rb |
attachy-0.1.0 | spec/models/attachy/viewer/link_options_spec.rb |