Commit d86c0cda authored by Douwe Maan's avatar Douwe Maan

Fix specs.

parent 19f04cf9
module SlackService
class SlackService
class IssueMessage < BaseMessage
attr_reader :username
attr_reader :title
......
module SlackService
class SlackService
class MergeMessage < BaseMessage
attr_reader :username
attr_reader :project_name
......
require 'slack-notifier'
module SlackService
class SlackService
class PushMessage < BaseMessage
attr_reader :after
attr_reader :before
......
require 'spec_helper'
describe SlackMessages::SlackIssueMessage do
subject { SlackMessages::SlackIssueMessage.new(args) }
describe SlackService::IssueMessage do
subject { SlackService::IssueMessage.new(args) }
let(:args) {
{
......
require 'spec_helper'
describe SlackMessages::SlackMergeMessage do
subject { SlackMessages::SlackMergeMessage.new(args) }
describe SlackService::MergeMessage do
subject { SlackService::MergeMessage.new(args) }
let(:args) {
{
......
require 'spec_helper'
describe SlackMessages::SlackPushMessage do
subject { SlackMessages::SlackPushMessage.new(args) }
describe SlackService::PushMessage do
subject { SlackService::PushMessage.new(args) }
let(:args) {
{
......@@ -31,8 +31,8 @@ describe SlackMessages::SlackPushMessage do
)
expect(subject.attachments).to eq([
{
text: "<url1|abcdefghi>: message1 - author1\n"\
"<url2|123456789>: message2 - author2",
text: "<url1|abcdefgh>: message1 - author1\n"\
"<url2|12345678>: message2 - author2",
color: color,
}
])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment