bkocik-twitter 0.6.10 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/lib/twitter/base.rb +2 -1
- data/test/twitter/base_test.rb +7 -0
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/twitter/base.rb
CHANGED
@@ -152,6 +152,7 @@ module Twitter
|
|
152
152
|
def help
|
153
153
|
perform_get('/help/test.json')
|
154
154
|
end
|
155
|
+
alias_method :update_status, :update
|
155
156
|
|
156
157
|
private
|
157
158
|
def perform_get(path, options={})
|
@@ -162,4 +163,4 @@ module Twitter
|
|
162
163
|
Twitter::Request.post(self, path, options)
|
163
164
|
end
|
164
165
|
end
|
165
|
-
end
|
166
|
+
end
|
data/test/twitter/base_test.rb
CHANGED
@@ -69,6 +69,13 @@ class BaseTest < Test::Unit::TestCase
|
|
69
69
|
status.user.name.should == 'John Nunemaker'
|
70
70
|
status.text.should == 'Rob Dyrdek is the funniest man alive. That is all.'
|
71
71
|
end
|
72
|
+
|
73
|
+
should "be able to update status with update_status" do
|
74
|
+
stub_post('/statuses/update.json', 'status.json')
|
75
|
+
status = @twitter.update_status('Rob Dyrdek is the funniest man alive. That is all.')
|
76
|
+
status.user.name.should == 'John Nunemaker'
|
77
|
+
status.text.should == 'Rob Dyrdek is the funniest man alive. That is all.'
|
78
|
+
end
|
72
79
|
|
73
80
|
should "be able to get replies" do
|
74
81
|
stub_get('/statuses/replies.json', 'replies.json')
|