summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLuke Duncalfe <lduncalfe@eml.cc>2019-04-01 10:20:21 +1300
committerLuke Duncalfe <lduncalfe@eml.cc>2019-04-01 10:20:21 +1300
commit84d96bed60f6ffd7a1bc81f0c99ad7ff3296ef95 (patch)
treef5db3e0c8624d021ba98082f5255e0cef51102ec /spec
parentc5eb9428cdae7d3aa17427c8285317d179b92873 (diff)
downloadgitlab-shell-display-post-receive-warnings.tar.gz
Rename print_broadbast method to be genericdisplay-post-receive-warnings
print_warnings is now using that method in order to print a large formatted warning message, so renaming the method to be less tied to the broadcast message functionality.
Diffstat (limited to 'spec')
-rw-r--r--spec/gitlab_post_receive_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/gitlab_post_receive_spec.rb b/spec/gitlab_post_receive_spec.rb
index a9b5340..d061830 100644
--- a/spec/gitlab_post_receive_spec.rb
+++ b/spec/gitlab_post_receive_spec.rb
@@ -108,7 +108,7 @@ describe GitlabPostReceive 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:\nMy warning message")
+ expect(gitlab_post_receive).to receive(:print_formatted_alert_message).with("WARNINGS:\nMy warning message")
expect(gitlab_post_receive.exec).to eq(true)
end
end