Permalink
Browse files

remove id method oddities

  • Loading branch information...
1 parent 7a6621b commit 35e659ecf5abbe6cea0449f283792bf5fd8d6e7e @mkristian committed Jul 8, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/params_filter_spec.rb
@@ -42,7 +42,7 @@ def method_missing(method)
it 'should filter a hash with keep' do
result = filter.use( :keep => ['id'] ).filter_it( data )
result.params.must_equal Hash[ 'name' => data['name'] ]
- result.id.must_equal data['id']
+ result[ 'id' ].must_equal data['id']
result.size.must_equal 2
end
@@ -82,7 +82,7 @@ def method_missing(method)
it 'should filter a hash with only and keep' do
result = filter.use( :only => ['name'], :keep => ['id'] ).filter_it( data )
result.params.must_equal Hash['name' => data['name']]
- result.id.must_equal data['id']
+ result[ 'id' ].must_equal data['id']
result.size.must_equal 2
end

0 comments on commit 35e659e

Please sign in to comment.