Commit c5eb9428 authored by Luke Duncalfe's avatar Luke Duncalfe

Fixing whitespace issues in spec

parent dfb1dac6
...@@ -98,7 +98,7 @@ describe GitlabPostReceive do ...@@ -98,7 +98,7 @@ describe GitlabPostReceive do
end end
end end
context 'when warnings available' do context 'when warnings are present' do
let(:response) do let(:response) do
{ {
'reference_counter_decreased' => true, 'reference_counter_decreased' => true,
...@@ -106,7 +106,7 @@ describe GitlabPostReceive do ...@@ -106,7 +106,7 @@ describe GitlabPostReceive do
} }
end 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_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_broadcast_message).with("WARNINGS:\nMy warning message")
expect(gitlab_post_receive.exec).to eq(true) expect(gitlab_post_receive.exec).to eq(true)
......
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