Commit d86c0cda authored by Douwe Maan's avatar Douwe Maan

Fix specs.

parent 19f04cf9
...@@ -93,4 +93,4 @@ end ...@@ -93,4 +93,4 @@ end
require "slack_service/issue_message" require "slack_service/issue_message"
require "slack_service/push_message" require "slack_service/push_message"
require "slack_service/merge_message" require "slack_service/merge_message"
\ No newline at end of file
module SlackService class SlackService
class IssueMessage < BaseMessage class IssueMessage < BaseMessage
attr_reader :username attr_reader :username
attr_reader :title attr_reader :title
......
module SlackService class SlackService
class MergeMessage < BaseMessage class MergeMessage < BaseMessage
attr_reader :username attr_reader :username
attr_reader :project_name attr_reader :project_name
......
require 'slack-notifier' class SlackService
module SlackService
class PushMessage < BaseMessage class PushMessage < BaseMessage
attr_reader :after attr_reader :after
attr_reader :before attr_reader :before
......
require 'spec_helper' require 'spec_helper'
describe SlackMessages::SlackIssueMessage do describe SlackService::IssueMessage do
subject { SlackMessages::SlackIssueMessage.new(args) } subject { SlackService::IssueMessage.new(args) }
let(:args) { let(:args) {
{ {
......
require 'spec_helper' require 'spec_helper'
describe SlackMessages::SlackMergeMessage do describe SlackService::MergeMessage do
subject { SlackMessages::SlackMergeMessage.new(args) } subject { SlackService::MergeMessage.new(args) }
let(:args) { let(:args) {
{ {
......
require 'spec_helper' require 'spec_helper'
describe SlackMessages::SlackPushMessage do describe SlackService::PushMessage do
subject { SlackMessages::SlackPushMessage.new(args) } subject { SlackService::PushMessage.new(args) }
let(:args) { let(:args) {
{ {
...@@ -31,8 +31,8 @@ describe SlackMessages::SlackPushMessage do ...@@ -31,8 +31,8 @@ describe SlackMessages::SlackPushMessage do
) )
expect(subject.attachments).to eq([ expect(subject.attachments).to eq([
{ {
text: "<url1|abcdefghi>: message1 - author1\n"\ text: "<url1|abcdefgh>: message1 - author1\n"\
"<url2|123456789>: message2 - author2", "<url2|12345678>: message2 - author2",
color: color, 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