summaryrefslogtreecommitdiff
path: root/spec/views
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-04-30 00:34:49 +0000
committerAsh McKenzie <amckenzie@gitlab.com>2019-04-30 00:34:49 +0000
commit5d5b9d57de9b781c5cc4ecdfb86a3d735ba52c7a (patch)
treefdb7050cb3e15aab8e8f1c2d23862b051dd9f72f /spec/views
parent7ae2107d9ebca0adecc8a21cacd1bfb6e89ee3ab (diff)
parentcf0265723479b2e511595312f8d053f737fa3d57 (diff)
downloadgitlab-ce-5d5b9d57de9b781c5cc4ecdfb86a3d735ba52c7a.tar.gz
Merge branch '60476-actionview-missingtemplate-missing-template-projects-issues-_merge_requests-with-locale-en-formats-html-varian' into 'master'
Delete leftover code for referenced_merge_requests endpoint Closes #60476 See merge request gitlab-org/gitlab-ce!27335
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/projects/issues/_merge_requests_status.html.haml_spec.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/views/projects/issues/_merge_requests_status.html.haml_spec.rb b/spec/views/projects/issues/_merge_requests_status.html.haml_spec.rb
deleted file mode 100644
index 9424795749d..00000000000
--- a/spec/views/projects/issues/_merge_requests_status.html.haml_spec.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-# frozen_string_literal: true
-require 'spec_helper'
-
-describe 'projects/issues/_merge_requests_status.html.haml' do
- around do |ex|
- Timecop.freeze(Date.new(2018, 7, 22)) do
- ex.run
- end
- end
-
- it 'shows date of status change in tooltip' do
- merge_request = create(:merge_request, created_at: 1.month.ago)
-
- render partial: 'projects/issues/merge_requests_status',
- locals: { merge_request: merge_request, css_class: '' }
-
- expect(rendered).to match("Opened.*about 1 month ago")
- end
-
- it 'shows only status in tooltip if date is not set' do
- merge_request = create(:merge_request, state: :closed)
-
- render partial: 'projects/issues/merge_requests_status',
- locals: { merge_request: merge_request, css_class: '' }
-
- expect(rendered).to match("Closed")
- end
-end