spec/lita/rspec_spec.rb in lita-4.6.0 vs spec/lita/rspec_spec.rb in lita-4.6.1

- old
+ new

@@ -115,9 +115,15 @@ describe "#message" do it "replies with a string" do send_message("message") expect(replies).to eq(["Test User"]) end + + it "does not memoize #replies on first access" do + replies + send_message("message") + expect(replies).to eq(["Test User"]) + end end describe "#channel" do it "replies with channel id if sent from room" do room = Lita::Room.create_or_update(1, name: "Room")