Sha256: 6fdf17af4fb117347d222a96cd0298a1dc2559e5801afde0b18b908385a4083c
Contents?: true
Size: 698 Bytes
Versions: 6
Compression:
Stored size: 698 Bytes
Contents
require "slack_messaging" module SlackMessaging describe RandomMessage do it "should get a string message" do message = RandomMessage.new expect(message.get_text).to be_instance_of(String) end it "should get a message greater than 25 characters" do message = RandomMessage.new expect(message.get_text.length).to be >= 50 end it "should get a message that includes a new line" do message = RandomMessage.new expect(message.get_text.include?("\n")).to eq(true) end it "should get a message that includes a '--'" do message = RandomMessage.new expect(message.get_text.include?("--")).to eq(true) end end end
Version data entries
6 entries across 6 versions & 1 rubygems