Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 482 Bytes
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.referrer = "http://example.com"
response = GoogleAjax::Search.web("apple", :rsz => :large)
response.is_a? OpenStruct
response.cursor.is_a? OpenStruct
end
end