mwmitchell-rsolr-ext 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rsolr-ext/hash_methodizer.rb +1 -0
- data/lib/rsolr-ext.rb +1 -1
- data/rsolr-ext.gemspec +1 -1
- data/test/hash_methodizer_test.rb +3 -1
- metadata +1 -1
data/lib/rsolr-ext.rb
CHANGED
data/rsolr-ext.gemspec
CHANGED
@@ -4,7 +4,7 @@ require File.join(File.dirname(__FILE__), '..', 'lib', 'rsolr-ext')
|
|
4
4
|
class RSolrExtRequestTest < Test::Unit::TestCase
|
5
5
|
|
6
6
|
def testable_hash
|
7
|
-
{:name=>'Sam', :age=>90, :kids=>['Fred', 'Betty'], :favorites=>{:red=>1, :blue=>9}}
|
7
|
+
{';key-with-invalid-method-chars'=>1, :name=>'Sam', :age=>90, :kids=>['Fred', 'Betty'], :favorites=>{:red=>1, :blue=>9}}
|
8
8
|
end
|
9
9
|
|
10
10
|
test 'the default behavior of a hash, after methodize!' do
|
@@ -28,6 +28,8 @@ class RSolrExtRequestTest < Test::Unit::TestCase
|
|
28
28
|
|
29
29
|
# make sure that the difference in method size is the size of the keys in my_hash
|
30
30
|
assert_equal my_hash.methods.size - key_count, original_methods.size
|
31
|
+
|
32
|
+
assert my_hash.respond_to?(:key_with_invalid_method_chars)
|
31
33
|
end
|
32
34
|
|
33
35
|
test 'the method accessors on a modified hash' do
|