summaryrefslogtreecommitdiff
path: root/spec/gitlab_net_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-11 15:06:50 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-11 15:06:50 +0200
commiteb2c08d83989b70c94b0180ccf12149b2b9b7e69 (patch)
treea3617aa0ddc508482ba85bb694923fc6b5b7bebd /spec/gitlab_net_spec.rb
parent519ba6f90a521c3dba05e8582dd245325308d584 (diff)
downloadgitlab-shell-eb2c08d83989b70c94b0180ccf12149b2b9b7e69.tar.gz
tests added: GitlabNet check, GitlabProject exec
Diffstat (limited to 'spec/gitlab_net_spec.rb')
-rw-r--r--spec/gitlab_net_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/gitlab_net_spec.rb b/spec/gitlab_net_spec.rb
index 7d2d7d9..965fa8e 100644
--- a/spec/gitlab_net_spec.rb
+++ b/spec/gitlab_net_spec.rb
@@ -9,6 +9,15 @@ describe GitlabNet, vcr: true do
gitlab_net.stub!(:host).and_return('https://dev.gitlab.org/api/v3/internal')
end
+ describe :check do
+ it 'should return 200 code for gitlab check' do
+ VCR.use_cassette("check-ok") do
+ result = gitlab_net.check
+ result.code.should == '200'
+ end
+ end
+ end
+
describe :discover do
it 'should return user has based on key id' do
VCR.use_cassette("discover-ok") do