spec/sucker/response_spec.rb in sucker-1.3.0.pre.3 vs spec/sucker/response_spec.rb in sucker-1.3.0
- old
+ new
@@ -61,9 +61,15 @@
node.should eql []
end
end
end
+ describe '#[]' do
+ it 'is an alias of #find' do
+ response['Foo'].should eql response.find('Foo')
+ end
+ end
+
describe '#to_hash' do
it 'returns a hash' do
response.to_hash.should be_a Hash
end