Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 35 lines (27 sloc) 0.759 kb
ab2ad5d @postmodern * Remove all the Pathname stuff.
postmodern authored
1 require 'spec_helper'
f2e09bb @postmodern * Replaced Unit Tests with Rspec specifications.
postmodern authored
2
3 require 'gscraper/gscraper'
9735217 @postmodern Updated specs a bit.
postmodern authored
4 require 'gscraper/version'
f2e09bb @postmodern * Replaced Unit Tests with Rspec specifications.
postmodern authored
5
6 describe "GScraper" do
9735217 @postmodern Updated specs a bit.
postmodern authored
7 it "should have a VERSION constant" do
8 GScraper.should be_const_defined('VERSION')
9 end
10
f2e09bb @postmodern * Replaced Unit Tests with Rspec specifications.
postmodern authored
11 describe "User-Agent support" do
12 it "should have a default User-Agent string" do
13 GScraper.user_agent.should_not be_nil
14 end
15 end
16
17 describe "Proxy support" do
18 it "should provide a :host key" do
9735217 @postmodern Updated specs a bit.
postmodern authored
19 GScraper.proxy.should have_key(:host)
f2e09bb @postmodern * Replaced Unit Tests with Rspec specifications.
postmodern authored
20 end
21
22 it "should provide a :port key" do
9735217 @postmodern Updated specs a bit.
postmodern authored
23 GScraper.proxy.should have_key(:port)
f2e09bb @postmodern * Replaced Unit Tests with Rspec specifications.
postmodern authored
24 end
25
26 it "should provide a :user key" do
9735217 @postmodern Updated specs a bit.
postmodern authored
27 GScraper.proxy.should have_key(:user)
f2e09bb @postmodern * Replaced Unit Tests with Rspec specifications.
postmodern authored
28 end
29
30 it "should provide a :password key" do
9735217 @postmodern Updated specs a bit.
postmodern authored
31 GScraper.proxy.should have_key(:password)
f2e09bb @postmodern * Replaced Unit Tests with Rspec specifications.
postmodern authored
32 end
33 end
34 end
Something went wrong with that request. Please try again.