Sha256: ee6a3b86aa8182818be78bf37f49e357f5f9a2ab6cb78fc5e1d41b90edacf717
Contents?: true
Size: 1.33 KB
Versions: 16
Compression:
Stored size: 1.33 KB
Contents
require 'helper' describe Twitter::Action::ListMemberAdded do describe "#sources" do it "returns a collection of users who added a user to a list" do sources = Twitter::Action::ListMemberAdded.new(:sources => [{:id => 7505382}]).sources expect(sources).to be_an Array expect(sources.first).to be_a Twitter::User end it "is empty when not set" do sources = Twitter::Action::ListMemberAdded.new.sources expect(sources).to be_empty end end describe "#target_objects" do it "returns a collection of lists that were added to" do targets = Twitter::Action::ListMemberAdded.new(:target_objects => [{:id => 8863586}]).target_objects expect(targets).to be_an Array expect(targets.first).to be_a Twitter::List end it "is empty when not set" do targets = Twitter::Action::ListMemberAdded.new.target_objects expect(targets).to be_empty end end describe "#targets" do it "returns a collection of users who were added to a list" do targets = Twitter::Action::ListMemberAdded.new(:targets => [{:id => 7505382}]).targets expect(targets).to be_an Array expect(targets.first).to be_a Twitter::User end it "is empty when not set" do targets = Twitter::Action::ListMemberAdded.new.targets expect(targets).to be_empty end end end
Version data entries
16 entries across 16 versions & 1 rubygems