Skip to content

Commit

Permalink
Updated specs a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Feb 12, 2010
1 parent ff44884 commit 9735217
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions spec/gscraper_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
require 'spec_helper'

require 'gscraper/gscraper'
require 'gscraper/version'

describe "GScraper" do
it "should have a VERSION constant" do
GScraper.should be_const_defined('VERSION')
end

describe "User-Agent support" do
it "should have a default User-Agent string" do
GScraper.user_agent.should_not be_nil
Expand All @@ -11,19 +16,19 @@

describe "Proxy support" do
it "should provide a :host key" do
GScraper.proxy.has_key?(:host).should == true
GScraper.proxy.should have_key(:host)
end

it "should provide a :port key" do
GScraper.proxy.has_key?(:port).should == true
GScraper.proxy.should have_key(:port)
end

it "should provide a :user key" do
GScraper.proxy.has_key?(:user).should == true
GScraper.proxy.should have_key(:user)
end

it "should provide a :password key" do
GScraper.proxy.has_key?(:password).should == true
GScraper.proxy.should have_key(:password)
end
end
end

0 comments on commit 9735217

Please sign in to comment.