diff --git a/lib/twitter/tweet.rb b/lib/twitter/tweet.rb index 1b7baa7a6..e739d1a1c 100644 --- a/lib/twitter/tweet.rb +++ b/lib/twitter/tweet.rb @@ -13,7 +13,7 @@ class Tweet < Twitter::Identity deprecate_alias :favorites_count, :favorite_count deprecate_alias :favoriters_count, :favorite_count alias_method :in_reply_to_tweet_id, :in_reply_to_status_id - alias_method :reply?, :in_reply_to_status_id? + alias_method :reply?, :in_reply_to_user_id? deprecate_alias :retweeters_count, :retweet_count object_attr_reader :GeoFactory, :geo object_attr_reader :Metadata, :metadata diff --git a/spec/twitter/tweet_spec.rb b/spec/twitter/tweet_spec.rb index 51f6da1c0..a3dede02f 100644 --- a/spec/twitter/tweet_spec.rb +++ b/spec/twitter/tweet_spec.rb @@ -270,11 +270,11 @@ end describe '#reply?' do - it 'returns true when there is an in-reply-to status' do - tweet = Twitter::Tweet.new(:id => 28_669_546_014, :in_reply_to_status_id => 114_749_583_439_036_416) + it 'returns true when there is an in-reply-to user' do + tweet = Twitter::Tweet.new(:id => 28_669_546_014, :in_reply_to_user_id => 7_505_382) expect(tweet.reply?).to be true end - it 'returns false when in_reply_to_status_id is not set' do + it 'returns false when in_reply_to_user_id is not set' do tweet = Twitter::Tweet.new(:id => 28_669_546_014) expect(tweet.reply?).to be false end