samsymons / RedditKit.rb

[Deprecated] A Ruby wrapper for the reddit API
https://redditkit.com/
MIT License
152 stars 26 forks source link

Fixed thing == <not a Thing> bug #19

Closed spharris closed 10 years ago

spharris commented 10 years ago

Fixed a bug where comparing objects of type Thing is compared to anything else (i.e. Nil) would cause NoMethodError. Now it just returns false.

The actual changes are in lib/redditkit/thing.rb and spec/redditkit/thing_spec.rb. This is my first time doing this so it looks like a bunch of other changes from the VCR files came along for the ride... sorry about that.