Sha256: d8f7a632a2193635eac1b8d96498ad6d93f69a56124f3cbe0f5d729e554a678b
Contents?: true
Size: 837 Bytes
Versions: 2
Compression:
Stored size: 837 Bytes
Contents
require 'helper' describe Twitter::Action::Follow do describe "#sources" do it "returns a collection of users who followed a user" do sources = Twitter::Action::Follow.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::Follow.new.sources sources.should be_empty end end describe "#targets" do it "returns a collection containing the followed user" do targets = Twitter::Action::Follow.new(:targets => [{:id => 7505382}]).targets targets.should be_an Array targets.first.should be_a Twitter::User end it "is empty when not set" do targets = Twitter::Action::Follow.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/follow_spec.rb |
twitter-4.0.0 | spec/twitter/action/follow_spec.rb |