Sha256: 281852c5c681346c311e52574767d2b870fe4befc1019ff0ced1aba2349c8d1b

Contents?: true

Size: 478 Bytes

Versions: 5

Compression:

Stored size: 478 Bytes

Contents

module PaginatedTable
  describe "configuration" do
    let(:configuration) { PaginatedTable.configuration }
    after do
      PaginatedTable.set_default_configuration
    end

    it "should have default rows_per_page" do
      configuration.rows_per_page.must_equal 10
    end

    it "should let us set rows_per_page" do
      PaginatedTable.configure do |config|
        config.rows_per_page = 20
      end
      configuration.rows_per_page.must_equal 20
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
paginated_table-0.0.6 test/units/config_test.rb
paginated_table-0.0.5 test/units/config_test.rb
paginated_table-0.0.4 test/units/config_test.rb
paginated_table-0.0.3 test/units/config_test.rb
paginated_table-0.0.2 test/units/config_test.rb