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