Sha256: 48527106db92c35261e99be332813aca571b9d5bb607e25abd65b8d47e3d71ce

Contents?: true

Size: 426 Bytes

Versions: 9

Compression:

Stored size: 426 Bytes

Contents

require 'spec_helper'

describe MobilePagination do

  describe 'Configuration' do

    it 'page_key config defaults to page' do
      config = described_class.configuration
      expect(config.page_key).to eq('page')
    end


    it 'sets configuration options' do
      MobilePagination.configure { |config| config.page_key = 'slide' }
      expect(described_class.configuration.page_key).to eq('slide')
    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mobile_pagination-0.0.9 spec/unit/mobile_pagination_spec.rb
mobile_pagination-0.0.8 spec/unit/mobile_pagination_spec.rb
mobile_pagination-0.0.7 spec/unit/mobile_pagination_spec.rb
mobile_pagination-0.0.6 spec/unit/mobile_pagination_spec.rb
mobile_pagination-0.0.5 spec/unit/mobile_pagination_spec.rb
mobile_pagination-0.0.4 spec/unit/mobile_pagination_spec.rb
mobile_pagination-0.0.3 spec/unit/mobile_pagination_spec.rb
mobile_pagination-0.0.2 spec/unit/mobile_pagination_spec.rb
mobile_pagination-0.0.1 spec/unit/mobile_pagination_spec.rb