Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-shell
Commits
c5eb9428
Commit
c5eb9428
authored
Mar 28, 2019
by
Luke Duncalfe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing whitespace issues in spec
parent
dfb1dac6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
spec/gitlab_post_receive_spec.rb
spec/gitlab_post_receive_spec.rb
+8
-8
No files found.
spec/gitlab_post_receive_spec.rb
View file @
c5eb9428
...
...
@@ -64,7 +64,7 @@ describe GitlabPostReceive do
context
'when contains long url string at end'
do
let
(
:broadcast_message
)
{
"test "
*
10
+
"message "
*
10
+
"https://localhost:5000/test/a/really/long/url/that/is/in/the/broadcast/message/do-not-truncate-when-url"
}
it
'doesnt truncate url'
do
it
'doesnt truncate url'
do
expect_any_instance_of
(
GitlabNet
).
to
receive
(
:post_receive
).
and_return
(
response
)
assert_broadcast_message_printed_keep_long_url_end
(
gitlab_post_receive
)
assert_new_mr_printed
(
gitlab_post_receive
)
...
...
@@ -76,7 +76,7 @@ describe GitlabPostReceive do
context
'when contains long url string at start'
do
let
(
:broadcast_message
)
{
"https://localhost:5000/test/a/really/long/url/that/is/in/the/broadcast/message/do-not-truncate-when-url "
+
"test "
*
10
+
"message "
*
11
}
it
'doesnt truncate url'
do
it
'doesnt truncate url'
do
expect_any_instance_of
(
GitlabNet
).
to
receive
(
:post_receive
).
and_return
(
response
)
assert_broadcast_message_printed_keep_long_url_start
(
gitlab_post_receive
)
assert_new_mr_printed
(
gitlab_post_receive
)
...
...
@@ -88,7 +88,7 @@ describe GitlabPostReceive do
context
'when contains long url string in middle'
do
let
(
:broadcast_message
)
{
"test "
*
11
+
"https://localhost:5000/test/a/really/long/url/that/is/in/the/broadcast/message/do-not-truncate-when-url "
+
"message "
*
11
}
it
'doesnt truncate url'
do
it
'doesnt truncate url'
do
expect_any_instance_of
(
GitlabNet
).
to
receive
(
:post_receive
).
and_return
(
response
)
assert_broadcast_message_printed_keep_long_url_middle
(
gitlab_post_receive
)
assert_new_mr_printed
(
gitlab_post_receive
)
...
...
@@ -98,7 +98,7 @@ describe GitlabPostReceive do
end
end
context
'when warnings a
vailable
'
do
context
'when warnings a
re present
'
do
let
(
:response
)
do
{
'reference_counter_decreased'
=>
true
,
...
...
@@ -106,7 +106,7 @@ describe GitlabPostReceive do
}
end
it
'
prints warnings the same ways as broadcast messages
'
do
it
'
treats the warning as a broadcast message
'
do
expect_any_instance_of
(
GitlabNet
).
to
receive
(
:post_receive
).
and_return
(
response
)
expect
(
gitlab_post_receive
).
to
receive
(
:print_broadcast_message
).
with
(
"WARNINGS:
\n
My warning message"
)
expect
(
gitlab_post_receive
.
exec
).
to
eq
(
true
)
...
...
@@ -213,7 +213,7 @@ describe GitlabPostReceive do
expect
(
gitlab_post_receive
).
to
receive
(
:puts
).
with
(
" message message message message message message message message"
).
ordered
expect
(
gitlab_post_receive
).
to
receive
(
:puts
).
with
(
"https://localhost:5000/test/a/really/long/url/that/is/in/the/broadcast/message/do-not-truncate-when-url"
).
ordered
...
...
@@ -230,7 +230,7 @@ describe GitlabPostReceive do
"========================================================================"
).
ordered
expect
(
gitlab_post_receive
).
to
receive
(
:puts
).
ordered
expect
(
gitlab_post_receive
).
to
receive
(
:puts
).
with
(
"https://localhost:5000/test/a/really/long/url/that/is/in/the/broadcast/message/do-not-truncate-when-url"
).
ordered
...
...
@@ -259,7 +259,7 @@ describe GitlabPostReceive do
"========================================================================"
).
ordered
expect
(
gitlab_post_receive
).
to
receive
(
:puts
).
ordered
expect
(
gitlab_post_receive
).
to
receive
(
:puts
).
with
(
" test test test test test test test test test test test"
).
ordered
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment