summaryrefslogtreecommitdiff
path: root/spec/features/unsubscribe_links_spec.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-09-25 17:06:09 +0100
committerSean McGivern <sean@gitlab.com>2016-09-26 16:01:17 +0100
commit20de47235e39e585ac1c8746fc9c4f673da910a0 (patch)
tree0851be1e2ce9dedc4e46f5e89b5137e3925f38cd /spec/features/unsubscribe_links_spec.rb
parentc8d92f95954dd37e50af8d7a91271566f00cb25b (diff)
downloadgitlab-ce-20de47235e39e585ac1c8746fc9c4f673da910a0.tar.gz
Wrap List-Unsubscribe link in angle bracketsfix-unsubscribe-header
Diffstat (limited to 'spec/features/unsubscribe_links_spec.rb')
-rw-r--r--spec/features/unsubscribe_links_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/unsubscribe_links_spec.rb b/spec/features/unsubscribe_links_spec.rb
index cc40671787c..33b52d1547e 100644
--- a/spec/features/unsubscribe_links_spec.rb
+++ b/spec/features/unsubscribe_links_spec.rb
@@ -11,7 +11,7 @@ describe 'Unsubscribe links', feature: true do
let(:mail) { ActionMailer::Base.deliveries.last }
let(:body) { Capybara::Node::Simple.new(mail.default_part_body.to_s) }
- let(:header_link) { mail.header['List-Unsubscribe'] }
+ let(:header_link) { mail.header['List-Unsubscribe'].to_s[1..-2] } # Strip angle brackets
let(:body_link) { body.find_link('unsubscribe')['href'] }
before do