Sha256: 3b3a8102e6c5793f2cc064003eaa75ca6ace3a7479da2b51b31504e0a1ad4262

Contents?: true

Size: 601 Bytes

Versions: 9

Compression:

Stored size: 601 Bytes

Contents

describe Symphonia::Attachment do

  context 'files' do
    let(:file) { FactoryBot.create(:file) }
    it '#create' do
      expect { file }.to change(described_class, :count).by 1
    end

    it 'just create common file' do
      f = nil
      expect { f = FactoryBot.create(:file, attachable: nil) }.to change(described_class, :count).by 1
      expect(f.attachable).to be_nil
    end
  end

  context 'images' do
    let(:image) { FactoryBot.create(:image) }
    it '#create', pending: "When `identify` missing" do
      expect { image }.to change(described_class, :count).by 1
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
symphonia-3.2.4 spec/models/attachment_spec.rb
symphonia-3.2.3 spec/models/attachment_spec.rb
symphonia-3.2.2 spec/models/attachment_spec.rb
symphonia-3.2.1 spec/models/attachment_spec.rb
symphonia-3.1.5 spec/models/attachment_spec.rb
symphonia-3.1.4 spec/models/attachment_spec.rb
symphonia-3.1.3 spec/models/attachment_spec.rb
symphonia-3.1.2 spec/models/attachment_spec.rb
symphonia-3.1.1 spec/models/attachment_spec.rb