spec/models/attachy/viewer/attachments_spec.rb in attachy-0.1.2 vs spec/models/attachy/viewer/attachments_spec.rb in attachy-0.2.0

- old
+ new

@@ -1,12 +1,14 @@ +# frozen_string_literal: true + require 'rails_helper' RSpec.describe Attachy::Viewer, '.attachments' do + subject { described_class.new method, object } + let!(:object) { create :user } before { allow(Cloudinary::Uploader).to receive(:remove_tag) } - - subject { described_class.new method, object } context 'with one file' do let!(:method) { :avatar } let!(:file) { create :file, attachable: object, scope: method }