Sha256: f93289dd76d8c8d91ebf1498ba3873858f7e69bb8c868b39d9f7192c2a6fddcc
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require File.expand_path(File.dirname(__FILE__) + '/googleajax_common') require 'googleajax/as_open_struct' describe "GoogleAjax/as_open_struct" do it_should_behave_like "GoogleAjax" it "returns results as an OpenStuct" do GoogleAjax.referer = "http://example.com" response = GoogleAjax::Search.web("apple", :rsz => :large) response.is_a? OpenStruct response.cursor.is_a? OpenStruct end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
googleajax-1.0.1 | spec/googleajax_as_open_struct_spec.rb |
googleajax-1.0.0 | spec/googleajax_as_open_struct_spec.rb |