Sha256: 3f7db292ff3c2a9cfdd88263091b55c440c6ddf183ccb9d595121685eac8bb32

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

require 'spec_helper'

describe RailsExceptionHandler::Configuration do
  describe ".initialize" do
    before(:each) do
      @configuration = RailsExceptionHandler::Configuration.new
    end

    it "should add :production to environments" do
      @configuration.environments.should == [:production]
    end

    it "should set storage_strategies to []" do
      @configuration.storage_strategies.should == []
    end

    it "should set store_user_info to false" do
      @configuration.store_user_info = false
    end

    it "should set filters to [] " do
      @configuration.filters.should == []
    end

    it "should set the default response" do
      @configuration.responses.should == {:default => '<h1>Internal server error</h1><p>The application has encountered an unexpected issue.</p>' }
    end

    it "should set the reponse_mapping to {}" do
      @configuration.response_mapping.should == {}
    end

    it "should set the fallback layout to 'application'" do
      @configuration.fallback_layout.should == 'application'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_exception_handler-1.1.2 spec/unit/configuration_spec.rb
rails_exception_handler-1.1.1 spec/unit/configuration_spec.rb
rails_exception_handler-1.1.0 spec/unit/configuration_spec.rb