diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-18 14:56:05 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-18 14:56:05 -0800 |
commit | 8ab4228b08c6f3bada042e7fd74ae1e2583e8191 (patch) | |
tree | efbe726e17cce31961185ae83c5c1ebb82527bec /spec/gitlab_net_spec.rb | |
parent | b0979371b87d86cec1f35b6ac7f1242b917ab4d4 (diff) | |
download | gitlab-shell-8ab4228b08c6f3bada042e7fd74ae1e2583e8191.tar.gz |
Improve broadcast message logicv2.5.1
Expect broadcast message API endpoint to return 200 with empty JSON if
no broadcast messages available
Diffstat (limited to 'spec/gitlab_net_spec.rb')
-rw-r--r-- | spec/gitlab_net_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/gitlab_net_spec.rb b/spec/gitlab_net_spec.rb index 17fb56d..3c2cea2 100644 --- a/spec/gitlab_net_spec.rb +++ b/spec/gitlab_net_spec.rb @@ -70,7 +70,7 @@ describe GitlabNet, vcr: true do it 'should return nil' do VCR.use_cassette("broadcast_message-none") do result = gitlab_net.broadcast_message - result.should == nil + result.should == {} end end end @@ -125,7 +125,7 @@ describe GitlabNet, vcr: true do it "raises an exception if the connection fails" do Net::HTTP.any_instance.stub(:request).and_raise(StandardError) - expect { + expect { gitlab_net.check_access('git-upload-pack', 'gitlab/gitlabhq.git', 'user-1', changes) }.to raise_error(GitlabNet::ApiUnreachableError) end |