summaryrefslogtreecommitdiff
path: root/spec/gitlab_access_spec.rb
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2016-06-23 11:12:56 +0200
committerJacob Vosmaer <jacob@gitlab.com>2016-06-23 11:12:56 +0200
commit2467697d81e4ab9e9d770d55d8cb33cb5779db22 (patch)
tree8f434e05b922be51277e6b60f667e00acb3ff1e2 /spec/gitlab_access_spec.rb
parentc6f14956d64e726f613c0092587f97444beeebb7 (diff)
downloadgitlab-shell-simplify-access-status.tar.gz
Simplify the GitAccessStatus classsimplify-access-status
Make the optional 'message' argument required. Remove unused 'to_json' method.
Diffstat (limited to 'spec/gitlab_access_spec.rb')
-rw-r--r--spec/gitlab_access_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/gitlab_access_spec.rb b/spec/gitlab_access_spec.rb
index 4768c71..39c3ab3 100644
--- a/spec/gitlab_access_spec.rb
+++ b/spec/gitlab_access_spec.rb
@@ -7,7 +7,7 @@ describe GitlabAccess do
let(:repo_path) { File.join(repository_path, repo_name) + ".git" }
let(:api) do
double(GitlabNet).tap do |api|
- api.stub(check_access: GitAccessStatus.new(true))
+ api.stub(check_access: GitAccessStatus.new(true, 'ok'))
end
end
subject do
@@ -38,7 +38,7 @@ describe GitlabAccess do
context "access is denied" do
before do
- api.stub(check_access: GitAccessStatus.new(false))
+ api.stub(check_access: GitAccessStatus.new(false, 'denied'))
end
it "returns false" do