Skip to content

Commit

Permalink
Test that "X-Phx" headers are included when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
laserlemon committed Sep 8, 2011
1 parent c85d630 commit 34f29fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/twitter/client/activity_spec.rb
Expand Up @@ -17,6 +17,7 @@
it "should get the correct resource" do
@client.about_me
a_get("i/activity/about_me.json").
with(:headers => {'X-Phx' => 'true'}).
should have_been_made
end
Expand All @@ -37,6 +38,7 @@
it "should get the correct resource" do
@client.by_friends
a_get("i/activity/by_friends.json").
with(:headers => {'X-Phx' => 'true'}).
should have_been_made
end
Expand Down
3 changes: 3 additions & 0 deletions spec/twitter/client/search_spec.rb
Expand Up @@ -19,6 +19,7 @@
@client.images('twitter')
a_get("i/search/image_facets.#{format}").
with(:query => {:q => "twitter"}).
with(:headers => {'X-Phx' => 'true'}).
should have_been_made
end

Expand All @@ -41,6 +42,7 @@
@client.videos('twitter')
a_get("i/search/video_facets.#{format}").
with(:query => {:q => "twitter"}).
with(:headers => {'X-Phx' => 'true'}).
should have_been_made
end

Expand All @@ -62,6 +64,7 @@
@client.search('twitter')
a_get("phoenix_search.phoenix").
with(:query => {:q => "twitter"}).
with(:headers => {'X-Phx' => 'true'}).
should have_been_made
end

Expand Down
1 change: 1 addition & 0 deletions spec/twitter/client/urls_spec.rb
Expand Up @@ -18,6 +18,7 @@
@client.resolve('http://t.co/uw5bn1w')
a_get("1/urls/resolve.json").
with(:query => {:urls => ["http://t.co/uw5bn1w"]}).
with(:headers => {'X-Phx' => 'true'}).
should have_been_made
end

Expand Down

0 comments on commit 34f29fe

Please sign in to comment.