Sha256: 92e1fd84267e07a0ddc54dc87908c5fd8d381dd4149567f8182fa268cd79f7cd

Contents?: true

Size: 805 Bytes

Versions: 14

Compression:

Stored size: 805 Bytes

Contents

require 'helper'

describe Twitter::Streaming::DeletedTweet do

  describe '#==' do
    it 'returns true when objects IDs are the same' do
      deleted_tweet = Twitter::Streaming::DeletedTweet.new(:id => 1)
      other = Twitter::Streaming::DeletedTweet.new(:id => 1)
      expect(deleted_tweet == other).to be true
    end
    it 'returns false when objects IDs are different' do
      deleted_tweet = Twitter::Streaming::DeletedTweet.new(:id => 1)
      other = Twitter::Streaming::DeletedTweet.new(:id => 2)
      expect(deleted_tweet == other).to be false
    end
    it 'returns false when classes are different' do
      deleted_tweet = Twitter::Streaming::DeletedTweet.new(:id => 1)
      other = Twitter::Identity.new(:id => 1)
      expect(deleted_tweet == other).to be false
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
twitter-5.11.0 spec/twitter/streaming/deleted_tweet_spec.rb
twitter-5.10.0 spec/twitter/streaming/deleted_tweet_spec.rb
twitter-5.9.0 spec/twitter/streaming/deleted_tweet_spec.rb
twitter-5.8.0 spec/twitter/streaming/deleted_tweet_spec.rb
twitter-5.7.1 spec/twitter/streaming/deleted_tweet_spec.rb
twitter-5.7.0 spec/twitter/streaming/deleted_tweet_spec.rb
twitter-5.6.0 spec/twitter/streaming/deleted_tweet_spec.rb
twitter-5.5.1 spec/twitter/streaming/deleted_tweet_spec.rb
twitter-5.5.0 spec/twitter/streaming/deleted_tweet_spec.rb
twitter-5.4.1 spec/twitter/streaming/deleted_tweet_spec.rb
twitter-5.4.0 spec/twitter/streaming/deleted_tweet_spec.rb
twitter-5.3.1 spec/twitter/streaming/deleted_tweet_spec.rb
twitter-5.3.0 spec/twitter/streaming/deleted_tweet_spec.rb
twitter-5.2.0 spec/twitter/streaming/deleted_tweet_spec.rb