Sha256: 6aaf887e0460fe7eed9c35a6a47ca5d0eae720a9d2dec173d03d4522bbb3ee1e

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

require 'spec_helper'

describe RailsPages::Configuration do
  describe 'default_routes' do
    context 'enabled' do
      it 'returns true' do
        expect(RailsPages.configuration.default_routes).to be_true
      end
    end

    context 'disabled' do
      before do
        RailsPages.configure { |c| c.default_routes = false }
      end

      it 'returns false' do
        expect(RailsPages.configuration.default_routes).to be_false
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_pages-0.0.3 spec/rails_pages/configuration_spec.rb
rails_pages-0.0.2 spec/rails_pages/configuration_spec.rb