Sha256: 1dd5f077dbfa3d7153ed3f650fef6a9cec588e4c506eb75690f011c68698535c
Contents?: true
Size: 856 Bytes
Versions: 2
Compression:
Stored size: 856 Bytes
Contents
require 'helper' describe Twitter::Action::Favorite do describe "#sources" do it "returns a collection of users who favorited a Tweet" do sources = Twitter::Action::Favorite.new(:sources => [{:id => 7505382}]).sources sources.should be_an Array sources.first.should be_a Twitter::User end it "is empty when not set" do sources = Twitter::Action::Favorite.new.sources sources.should be_empty end end describe "#targets" do it "returns a collection containing the favorited Tweet" do targets = Twitter::Action::Favorite.new(:targets => [{:id => 25938088801}]).targets targets.should be_an Array targets.first.should be_a Twitter::Tweet end it "is empty when not set" do targets = Twitter::Action::Favorite.new.targets targets.should be_empty end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twitter-4.1.0 | spec/twitter/action/favorite_spec.rb |
twitter-4.0.0 | spec/twitter/action/favorite_spec.rb |