Skip to content

Commit

Permalink
Remove unnecessary test
Browse files Browse the repository at this point in the history
This is already guaranteed by the `Data` class.
  • Loading branch information
MatheusRich committed Aug 11, 2023
1 parent beddeff commit 9a9bbb5
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions spec/gold_miner/slack/message_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,55 +18,6 @@
end
end

describe "#==" do
it "returns true if the messages have the same attributes" do
message1 = described_class.new(
text: "TIL",
author: "@JohnDoe",
permalink: "https:///message-1-permalink.com"
)
message2 = described_class.new(
text: "TIL",
author: "@JohnDoe",
permalink: "https:///message-1-permalink.com"
)

result = message1 == message2

expect(result).to be true
end

it "returns false if any of the attributes are different" do
message1 = described_class.new(
text: "TIL",
author: "@JohnDoe",
permalink: "https:///message-1-permalink.com"
)
message2 = described_class.new(
text: "TIL2",
author: "@JohnDoe",
permalink: "https:///message-1-permalink.com"
)
message3 = described_class.new(
text: "TIL",
author: "@JohnDoe2",
permalink: "https:///message-1-permalink.com"
)
message4 = described_class.new(
text: "TIL",
author: "@JohnDoe",
permalink: "https:///message-2-permalink.com"
)

expect(message1 == message2).to be false
expect(message1 == message3).to be false
expect(message1 == message4).to be false
expect(message2 == message3).to be false
expect(message2 == message4).to be false
expect(message3 == message4).to be false
end
end

describe "#as_conversation" do
it "returns the message content with the author name" do
message = described_class.new(
Expand Down

0 comments on commit 9a9bbb5

Please sign in to comment.