Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennestuder committed Dec 6, 2016
1 parent cedf201 commit 0e77b28
Showing 1 changed file with 8 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,13 @@ class SlackPayloadFactoryTest extends Specification {

then:
json == """{
"text": "<http://www.myUrl.org/s/abcde|Build scan> published in TeamCity configuration <http://tc.server.org/viewLog.html?buildId=23|My Configuration>.",
"text": "TeamCity <http://tc.server.org/viewLog.html?buildId=23|[My Configuration]> 1 build scan published:",
"attachments": [
{
"fallback": "Build scan http://www.myUrl.org/s/abcde",
"color": "#000000",
"fields": [
{
"title": "Build scan",
"value": "http://www.myUrl.org/s/abcde",
"short": true
}
]
"text": "Build scan http://www.myUrl.org/s/abcde",
"fields": []
}
]
}"""
Expand All @@ -58,29 +53,19 @@ class SlackPayloadFactoryTest extends Specification {

then:
json == """{
"text": "2 build scans published in TeamCity configuration <http://tc.server.org/viewLog.html?buildId=23|My Configuration>.",
"text": "TeamCity <http://tc.server.org/viewLog.html?buildId=23|[My Configuration]> 2 build scans published:",
"attachments": [
{
"fallback": "Build scan http://www.myUrl.org/s/abcde",
"color": "#000000",
"fields": [
{
"title": "Build scan",
"value": "http://www.myUrl.org/s/abcde",
"short": true
}
]
"text": "Build scan http://www.myUrl.org/s/abcde",
"fields": []
},
{
"fallback": "Build scan http://www.myOtherUrl.org/efghi",
"color": "#000000",
"fields": [
{
"title": "Build scan",
"value": "http://www.myOtherUrl.org/efghi",
"short": true
}
]
"text": "Build scan http://www.myOtherUrl.org/efghi",
"fields": []
}
]
}"""
Expand Down

0 comments on commit 0e77b28

Please sign in to comment.