spec/twitter/relationship_spec.rb in twitter-5.0.0.rc.1 vs spec/twitter/relationship_spec.rb in twitter-5.0.0

- old
+ new

@@ -14,15 +14,15 @@ end describe "#source?" do it "returns true when source is set" do relationship = Twitter::Relationship.new(:relationship => {:source => {:id => 7505382}}) - expect(relationship.source?).to be_true + expect(relationship.source?).to be true end it "returns false when source is not set" do relationship = Twitter::Relationship.new(:relationship => {}) - expect(relationship.source?).to be_false + expect(relationship.source?).to be false end end describe "#target" do it "returns a User when target is set" do @@ -36,22 +36,14 @@ end describe "#target?" do it "returns true when target is set" do relationship = Twitter::Relationship.new(:relationship => {:target => {:id => 7505382}}) - expect(relationship.target?).to be_true + expect(relationship.target?).to be true end it "returns false when target is not set" do relationship = Twitter::Relationship.new(:relationship => {}) - expect(relationship.target?).to be_false - end - end - - describe "#update" do - it "updates a relationship" do - relationship = Twitter::Relationship.new(:relationship => {:target => {:id => 7505382}}) - relationship.update(:relationship => {:target => {:id => 14100886}}) - expect(relationship.target.id).to eq(14100886) + expect(relationship.target?).to be false end end end