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:
authorTimothy Andrew <mail@timothyandrew.net>2016-09-21 00:21:43 +0300
committerTimothy Andrew <mail@timothyandrew.net>2016-09-21 00:29:17 +0300
commit0a2649ce694a0ba70fa6c4caa84ea21dd53446c8 (patch)
tree4bcba7e734c719d9be45a4e3f00a0e5f5ee2a949 /spec/services/git_push_service_spec.rb
parentb5dc0c6da55c7066746ee365c0248e82c849c944 (diff)
Fix build.
Diffstat (limited to 'spec/services/git_push_service_spec.rb')
-rw-r--r--spec/services/git_push_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/git_push_service_spec.rb b/spec/services/git_push_service_spec.rb
index cdf0d44a32b..22991c5bc86 100644
--- a/spec/services/git_push_service_spec.rb
+++ b/spec/services/git_push_service_spec.rb
@@ -364,14 +364,14 @@ describe GitPushService, services: true do
it 'sets the metric for referenced issues' do
execute_service(project, user, @oldrev, @newrev, @ref)
- expect(issue.metrics.first_mentioned_in_commit_at).to be_within(1.second).of(commit_time)
+ expect(issue.reload.metrics.first_mentioned_in_commit_at).to be_within(1.second).of(commit_time)
end
it 'does not set the metric for non-referenced issues' do
non_referenced_issue = create(:issue, project: project)
execute_service(project, user, @oldrev, @newrev, @ref)
- expect(non_referenced_issue.metrics.first_mentioned_in_commit_at).to be_nil
+ expect(non_referenced_issue.reload.metrics.first_mentioned_in_commit_at).to be_nil
end
end
end