test/test_handler.rb in rest-graph-1.4.6 vs test/test_handler.rb in rest-graph-1.5.0

- old
+ new

@@ -44,11 +44,12 @@ it 'would raise ::RestGraph::Error in default error_handler' do begin RestGraph.new.get('me') rescue ::RestGraph::Error => e - e.message.should == @error_hash + e.error .should == @error_hash + e.message.should == @error_hash.inspect end end end describe 'with FQL API' do @@ -77,10 +78,11 @@ it 'would raise ::RestGraph::Error in default error_handler' do begin RestGraph.new.fql(@bad_fql_query) rescue ::RestGraph::Error => e - e.message.should == @fql_error_hash + e.error .should == @fql_error_hash + e.message.should == @fql_error_hash.inspect end end end end