diff options
author | Fatih Acet <acetfatih@gmail.com> | 2019-04-12 22:23:49 +0200 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-04-15 09:02:50 +0200 |
commit | cf0265723479b2e511595312f8d053f737fa3d57 (patch) | |
tree | 4b3c68ed85ca35709da969a0463238601ac3d358 /spec/views | |
parent | 25af3a15fc7819b6fe7620bdaa72a4281252079c (diff) | |
download | gitlab-ce-cf0265723479b2e511595312f8d053f737fa3d57.tar.gz |
Delete leftover code for referenced_merge_requests60476-actionview-missingtemplate-missing-template-projects-issues-_merge_requests-with-locale-en-formats-html-varian
We rewrote Related MRs widget using Vue.
The previous implementation was using Haml templates
and calling referenced_merge_requests endpoint which is
now deprecated. This MR deletes leftover stuff them.
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/issues/_merge_requests_status.html.haml_spec.rb | 28 |
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 |