Sha256: 51c3a3821064135ca9b46a7537e6fb0b33029b44bb95fab77fc15edcbf36dcc0

Contents?: true

Size: 933 Bytes

Versions: 8

Compression:

Stored size: 933 Bytes

Contents

require 'spec_helper'

describe 'Configuration' do
  it 'should have config as SimplePages' do
    SimplePages.configure do |config|
      config.should be SimplePages
    end
  end

  it 'should have controller_modules config' do
    SimplePages.configure do |config|
      config.controller_modules.should be_a_kind_of Array
    end
  end

  it 'should have helper_modules config' do
    SimplePages.configure do |config|
      config.helper_modules.should be_a_kind_of Array
    end
  end

  it 'should have page_modules config' do
    SimplePages.configure do |config|
      config.page_modules.should be_a_kind_of Array
    end
  end

  it 'should have page_table_name config' do
    SimplePages.configure do |config|
      config.page_table_name.should eq 'simple_pages'
    end
  end

  it 'should have pages_per_page config' do
    SimplePages.configure do |config|
      config.pages_per_page.should eq 30
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
simple-pages-rails-0.7.0 spec/configuration_spec.rb
simple-pages-rails-0.6.0 spec/configuration_spec.rb
simple-pages-rails-0.5.0 spec/configuration_spec.rb
simple-pages-rails-0.4.0 spec/configuration_spec.rb
simple-pages-rails-0.3.1 spec/configuration_spec.rb
simple-pages-rails-0.3.0 spec/configuration_spec.rb
simple-pages-rails-0.2.0 spec/configuration_spec.rb
simple-pages-rails-0.1.0 spec/configuration_spec.rb