summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2017-11-06 14:46:27 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2017-11-09 18:00:30 +0100
commitd825c9cb5d89d18685a196789b477df83998fed2 (patch)
treee352e2f79663000d7ce9dded847ac9894ce9fa19 /spec/features
parent618cf6c672016451a7941b417a81edfa7a323a30 (diff)
downloadgitlab-ce-d825c9cb5d89d18685a196789b477df83998fed2.tar.gz
Clean up schema of the "issues" tablecleanup-issues-schema
This adds various foreign key constraints, indexes, missing NOT NULL constraints, and changes some column types from timestamp to timestamptz. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/31811
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/issues/issue_detail_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/features/issues/issue_detail_spec.rb b/spec/features/issues/issue_detail_spec.rb
index 6fbee0ebcb5..4224a8fe5d4 100644
--- a/spec/features/issues/issue_detail_spec.rb
+++ b/spec/features/issues/issue_detail_spec.rb
@@ -1,9 +1,9 @@
require 'rails_helper'
feature 'Issue Detail', :js do
- let(:user) { create(:user) }
- let(:project) { create(:project, :public) }
- let(:issue) { create(:issue, project: project, author: user) }
+ let(:user) { create(:user) }
+ let(:project) { create(:project, :public) }
+ let(:issue) { create(:issue, project: project, author: user) }
context 'when user displays the issue' do
before do
@@ -27,6 +27,7 @@ feature 'Issue Detail', :js do
click_link 'Edit'
fill_in 'issuable-title', with: 'issue title'
click_button 'Save'
+ wait_for_requests
Users::DestroyService.new(user).execute(user)