Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-02-21 17:20:06 +0300
committerJacob Vosmaer <jacob@gitlab.com>2018-02-21 17:20:06 +0300
commit7e135b23f625982fd5be79345fd3670a7698ec61 (patch)
tree5b6c7a932c99c76116c88a7270c43a4cc379609c
parentc83d68e05b1a3057dc12c9cb71c2093bf15ca78c (diff)
Change expect block in specfix-http-wiki-clone
-rw-r--r--spec/requests/git_http_spec.rb14
1 files changed, 5 insertions, 9 deletions
diff --git a/spec/requests/git_http_spec.rb b/spec/requests/git_http_spec.rb
index 08471339f5d..e812556ea76 100644
--- a/spec/requests/git_http_spec.rb
+++ b/spec/requests/git_http_spec.rb
@@ -160,15 +160,11 @@ describe 'Git HTTP requests' do
it 'creates the repository' do
FileUtils.rm_rf(wiki.repository.path)
- # Sanity check, did we rm_rf correctly?
- expect(wiki.repository.raw_repository.exists?).to eq(false)
-
- # This request should create the wiki repo as a side effect
- download(path) do |response|
- expect(response).to have_gitlab_http_status(:ok)
- end
-
- expect(wiki.repository.raw_repository.exists?).to eq(true)
+ expect do
+ download(path) do |response|
+ expect(response).to have_gitlab_http_status(:ok)
+ end
+ end.to change(wiki.repository.raw_repository, :exists?).from(false).to(true)
end
end