From 38c85b135f0a4c32fda0b41b493778bf0511fad0 Mon Sep 17 00:00:00 2001 From: Kevin Glowacz Date: Tue, 27 Jan 2015 13:53:20 -0600 Subject: [PATCH] Failing test for ContentDispositionParser --- spec/mail/parsers/content_disposition_parser_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 spec/mail/parsers/content_disposition_parser_spec.rb diff --git a/spec/mail/parsers/content_disposition_parser_spec.rb b/spec/mail/parsers/content_disposition_parser_spec.rb new file mode 100644 index 000000000..9046c1974 --- /dev/null +++ b/spec/mail/parsers/content_disposition_parser_spec.rb @@ -0,0 +1,11 @@ +# encoding: utf-8 +require 'spec_helper' + +describe "ContentDispositionParser" do + + subject(:parser){ Mail::Parsers::ContentDispositionParser.new } + + it "should work with unquoted dates" do + parser.parse('attachment; filename="Scan213.pdf"; size=175632; creation-date=Tue, 14 Oct 2014 10:47:01 GMT; modification-date=Mon, 13 Oct 2014 09:44:52 GMT') + end +end