Permalink
Browse files

Rename default user agent

  • Loading branch information...
1 parent 9ad0ef0 commit 2929e533f441bea2313882c4e0ed5593fe999491 @sferik committed Oct 18, 2010
Showing with 7 additions and 7 deletions.
  1. +1 −1 lib/twitter.rb
  2. +3 −3 test/twitter/search_test.rb
  3. +2 −2 test/twitter_test.rb
  4. +1 −1 website/index.html
View
@@ -98,7 +98,7 @@ def user_agent=(value)
end
def default_user_agent
- @default_user_agent ||= 'Ruby Twitter Gem'
+ @default_user_agent ||= 'Twitter Ruby Gem'
end
end
@@ -12,13 +12,13 @@ class SearchTest < Test::Unit::TestCase
assert Twitter::Search.new('httparty').query[:q].include? 'httparty'
end
- should "default user agent to Ruby Twitter Gem" do
- assert_equal 'Ruby Twitter Gem', Twitter::Search.user_agent
+ should "default user agent to Twitter Ruby Gem" do
+ assert_equal 'Twitter Ruby Gem', Twitter::Search.user_agent
end
should "allow overriding default user agent" do
Twitter.user_agent = 'Foobar'
- assert_equal 'Ruby Twitter Gem', Twitter::Search.user_agent
+ assert_equal 'Twitter Ruby Gem', Twitter::Search.user_agent
# Reset
Twitter.user_agent = Twitter.default_user_agent
end
View
@@ -31,8 +31,8 @@ class TwitterTest < Test::Unit::TestCase
end
end
- should "default user_agent to 'Ruby Twitter Gem'" do
- assert_equal 'Ruby Twitter Gem', Twitter.user_agent
+ should "default user_agent to 'Twitter Ruby Gem'" do
+ assert_equal 'Twitter Ruby Gem', Twitter.user_agent
end
context "when overriding user_agent" do
View
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>Ruby Twitter Gem by John Nunemaker</title>
+ <title>Twitter Ruby Gem by John Nunemaker</title>
<link rel="stylesheet" href="css/common.css" type="text/css" />
</head>
<body>

0 comments on commit 2929e53

Please sign in to comment.