Sha256: a9b87061ec985737e2fec81f96a7d3265f65a67ec558fd60bae5b59c187a42f2

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require File.expand_path(File.dirname(__FILE__) + '/googleajax_common')

require 'googleajax'

describe "GoogleAjax (standard)" do
  it_should_behave_like "GoogleAjax"

  it "returns results as a hash" do
    GoogleAjax.referer = "http://example.com"
    response = GoogleAjax::Search.web("apple", :rsz => :large)
    response.is_a? Hash
    response[:cursor].is_a? Hash
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
googleajax-1.0.1 spec/googleajax_spec.rb
googleajax-1.0.0 spec/googleajax_spec.rb