Sha256: ccc3156dda5ba9ad7c1c964acff8f767377e45358d66b9dc2ed713dc34d3d4b6
Contents?: true
Size: 525 Bytes
Versions: 4
Compression:
Stored size: 525 Bytes
Contents
require "test_helper" class ConfigTest < Test::Unit::TestCase def test_yield_configuration_class Paginate.setup do |config| config.param_name = :p config.size = 50 end assert_equal :p, Paginate::Config.param_name assert_equal 50, Paginate::Config.size end def test_return_config_as_hash Paginate.setup do |config| config.param_name = :p config.size = 25 end options = {:param_name => :p, :size => 25} assert_equal options, Paginate::Config.to_hash end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
paginate-0.1.3 | test/paginate/config_test.rb |
paginate-0.1.2 | test/paginate/config_test.rb |
paginate-0.1.1 | test/paginate/config_test.rb |
paginate-0.1.0 | test/paginate/config_test.rb |