spec/unit/result_spec.rb in rspec-system-1.7.1 vs spec/unit/result_spec.rb in rspec-system-2.0.0
- old
+ new
@@ -8,6 +8,14 @@
it 'should allow you to query using hash queries' do
result = subject.class.new(:foo => 'bar')
result[:foo].should == 'bar'
end
+
+ it 'should allow you to retreive the full hash' do
+ result = subject.class.new(:foo => 'bar', :baz => 'bam')
+ result.to_hash.should == {
+ :foo => 'bar',
+ :baz => 'bam',
+ }
+ end
end