fix(dkim): fixes bug with signing dkim bodies

This commit is contained in:
Adam Cooke
2021-07-28 17:01:42 +00:00
parent 21a8d89045
commit 189dfa509b
4 changed files with 1022 additions and 5 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ describe Postal::DKIMHeader do
frontmatter, email = contents.split(/^---\n/m, 2)
frontmatter = YAML.load(frontmatter)
email.strip
it "works with #{path.split('/').first}" do
it "works with #{path.split('/').last}" do
mocked_time = Time.at(frontmatter['time'].to_i)
allow(Time).to receive(:now).and_return(mocked_time)