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