summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-07-23 16:55:39 +0300
committerValery Sizov <vsv2711@gmail.com>2015-07-23 16:55:39 +0300
commit6150bf32d7099813e17858e1877832a395f85e65 (patch)
tree91ea52f752acb8062effeca5824cd914b24bc095
parent0687441b91e7548078e4ee35cdfa3895faadd52d (diff)
downloadgitlab-ce-test_stabilize_stable.tar.gz
fix randomly failed spectest_stabilize_stable
-rw-r--r--spec/requests/api/branches_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/requests/api/branches_spec.rb b/spec/requests/api/branches_spec.rb
index cb6e5e89625..d1e601ac3f8 100644
--- a/spec/requests/api/branches_spec.rb
+++ b/spec/requests/api/branches_spec.rb
@@ -14,6 +14,8 @@ describe API::API, api: true do
describe "GET /projects/:id/repository/branches" do
it "should return an array of project branches" do
+ project.repository.expire_cache
+
get api("/projects/#{project.id}/repository/branches", user)
expect(response.status).to eq(200)
expect(json_response).to be_an Array