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 CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
- :minor: 6
4
- :patch: 10
3
+ :minor: 7
4
+ :patch: 0
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
@@ -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')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bkocik-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.10
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker