Sha256: 31a0d68711121dae812c18101733cc642c134a00b69148a3ce5d419a15b895be

Contents?: true

Size: 366 Bytes

Versions: 7

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true

require "rails_helper"

module Archangel
  RSpec.describe ApplicationUploader, type: :uploader do
    it "uses default image" do
      expect(subject.default_url).to eq("/images/fallback/default.png")
    end

    it "allows certain extensions" do
      expect(subject.extension_whitelist).to eq %i[gif jpeg jpg png]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
archangel-0.0.8 spec/uploaders/archangel/application_uploader_spec.rb
archangel-0.0.7 spec/uploaders/archangel/application_uploader_spec.rb
archangel-0.0.6 spec/uploaders/archangel/application_uploader_spec.rb
archangel-0.0.5 spec/uploaders/archangel/application_uploader_spec.rb
archangel-0.0.4 spec/uploaders/archangel/application_uploader_spec.rb
archangel-0.0.3 spec/uploaders/archangel/application_uploader_spec.rb
archangel-0.0.2 spec/uploaders/archangel/application_uploader_spec.rb