markauskas-googlebase 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.txt +1 -1
- data/Rakefile +8 -0
- data/init.rb +1 -0
- data/lib/google/base.rb +15 -8
- data/lib/google/version.rb +1 -1
- data/lib/googlebase.rb +1 -0
- data/markauskas-googlebase.gemspec +8 -8
- data/test/.credentials.sample.yml +3 -0
- data/test/googlebase_test.rb +44 -0
- data/test/test_helper.rb +2 -2
- metadata +8 -8
- data/History.txt +0 -7
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/setup.rb +0 -1585
- data/test/test_googlebase.rb +0 -35
data/test/test_googlebase.rb
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/test_helper.rb'
|
2
|
-
|
3
|
-
# I am fully aware these are lacking. Haven't had the time to figure out best way to test this since it is in essence a hack.
|
4
|
-
|
5
|
-
class TestGooglebase < Test::Unit::TestCase
|
6
|
-
|
7
|
-
def setup
|
8
|
-
end
|
9
|
-
|
10
|
-
def test_should_make_http_get_request
|
11
|
-
html = Google::Base.get('http://www.google.com/reader/user-info')
|
12
|
-
assert html =~ /webgroup@nd\.edu/
|
13
|
-
end
|
14
|
-
|
15
|
-
def test_should_make_https_get_request
|
16
|
-
html = Google::Base.get('https://www.google.com:443/analytics/home/')
|
17
|
-
assert html =~ /webgroup\.nd\.edu/
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_should_make_http_post_request
|
21
|
-
|
22
|
-
end
|
23
|
-
|
24
|
-
def test_should_make_https_post_request
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
def test_should_make_http_post_request_with_raw_data
|
29
|
-
|
30
|
-
end
|
31
|
-
|
32
|
-
def test_should_make_https_post_request_with_raw_data
|
33
|
-
|
34
|
-
end
|
35
|
-
end
|