Sha256: 3f0f9b7297136fe9a02ac70f089d65406bf1a2dd61ddbc095f0dfede01f13a52

Contents?: true

Size: 712 Bytes

Versions: 17

Compression:

Stored size: 712 Bytes

Contents

require 'spec_helper'

describe "configuration" do
  let (:app) { test_app }

  it "adds to fetch_file_whitelist" do
    app.configure do
      fetch_file_whitelist ['something']
    end
    app.fetch_file_whitelist.should include 'something'
  end

  it "adds to fetch_url_whitelist" do
    app.configure do
      fetch_url_whitelist ['http://something']
    end
    app.fetch_url_whitelist.should include 'http://something'
  end

  describe "deprecations" do
    it "protect_from_dos_attacks" do
      Dragonfly.should_receive(:warn).with(/deprecated/)
      expect {
        app.configure do
          protect_from_dos_attacks false
        end
      }.to change(app.server, :verify_urls)
    end
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
dragonfly-1.4.1 spec/functional/configuration_spec.rb
dragonfly-1.4.0 spec/functional/configuration_spec.rb
dragonfly-1.3.0 spec/functional/configuration_spec.rb
dragonfly-1.2.1 spec/functional/configuration_spec.rb
dragonfly-1.2.0 spec/functional/configuration_spec.rb
dragonfly-1.1.5 spec/functional/configuration_spec.rb
dragonfly-1.1.4 spec/functional/configuration_spec.rb
dragonfly-1.1.3 spec/functional/configuration_spec.rb
dragonfly-1.1.2 spec/functional/configuration_spec.rb
dragonfly-1.1.1 spec/functional/configuration_spec.rb
dragonfly-1.1.0 spec/functional/configuration_spec.rb
dragonfly-1.0.12 spec/functional/configuration_spec.rb
dragonfly-1.0.11 spec/functional/configuration_spec.rb
dragonfly-1.0.10 spec/functional/configuration_spec.rb
dragonfly-1.0.9 spec/functional/configuration_spec.rb
dragonfly-1.0.8 spec/functional/configuration_spec.rb
dragonfly-1.0.7 spec/functional/configuration_spec.rb