spec/googleajax_spec.rb in googleajax-0.2.0 vs spec/googleajax_spec.rb in googleajax-1.0.0

- old
+ new

@@ -4,12 +4,12 @@ require 'googleajax' describe "GoogleAjax (standard)" do it_should_behave_like "GoogleAjax" - it "returns results as an OpenStuct" do + it "returns results as a hash" do GoogleAjax.referer = "http://example.com" response = GoogleAjax::Search.web("apple", :rsz => :large) - response.is_a? OpenStruct - response.cursor.is_a? OpenStruct + response.is_a? Hash + response[:cursor].is_a? Hash end end \ No newline at end of file