Permalink
Browse files

I can leave off the "http://" in URIs, FakeWeb will normalize them

  • Loading branch information...
1 parent 1c5f87e commit bedc55531a8b63229aa3832aebaa241344b3e0c3 @mislav committed Oct 7, 2008
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/gmail/fetching_spec.rb
@@ -17,7 +17,7 @@ def create
describe 'fetches contacts feed via HTTP GET' do
it 'with defaults' do
- FakeWeb::register_uri 'http://www.google.com/m8/feeds/contacts/default/thin',
+ FakeWeb::register_uri 'www.google.com/m8/feeds/contacts/default/thin',
:string => 'thin results',
:verify => lambda { |req|
req['Authorization'].should == %(AuthSub token="dummytoken")
@@ -33,7 +33,7 @@ def create
@gmail = Contacts::Google.new('dummytoken', 'person@example.com')
@gmail.projection = 'full'
- FakeWeb::register_uri 'http://www.google.com/m8/feeds/contacts/person%40example.com/full',
+ FakeWeb::register_uri 'www.google.com/m8/feeds/contacts/person%40example.com/full',
:string => 'full results'
response = @gmail.get({})
@@ -69,7 +69,7 @@ def create
end
it 'raises a fetching error when something goes awry' do
- FakeWeb::register_uri 'http://www.google.com/m8/feeds/contacts/default/thin',
+ FakeWeb::register_uri 'www.google.com/m8/feeds/contacts/default/thin',
:status => [404, 'YOU FAIL']
lambda {
@@ -152,7 +152,7 @@ def create
end
def expect_params(params, partial = false)
- FakeWeb::register_uri 'http://www.google.com/m8/feeds/contacts/default/thin',
+ FakeWeb::register_uri 'www.google.com/m8/feeds/contacts/default/thin',
:query => params, :query_partial_match => partial
end

0 comments on commit bedc555

Please sign in to comment.