Sha256: 5d136596726427f9c05c1c7a40786877c2ac09a67353234cab70c7a4a2653cbc
Contents?: true
Size: 622 Bytes
Versions: 62
Compression:
Stored size: 622 Bytes
Contents
require 'test_helper' module Workarea class CleanRangeFacetsTest < TestCase def test_result cleaner = CleanRangeFacets.new( 'price' => [ { 'from' => '', 'to' => '9.99' }, { 'from' => '10', 'to' => '' } ] ) assert_equal( { 'price' => [{ 'to' => 9.99 }, { 'from' => 10 }] }, cleaner.result ) cleaner = CleanRangeFacets.new( 'price' => [ { 'from' => '', 'to' => '' }, { 'from' => '10', 'to' => '' } ] ) assert_equal({ 'price' => [{ 'from' => 10 }] }, cleaner.result) end end end
Version data entries
62 entries across 62 versions & 1 rubygems