spec/changelog_spec.rb in danger-changelog-0.2.0 vs spec/changelog_spec.rb in danger-changelog-0.2.1
- old
+ new
@@ -126,11 +126,14 @@
it 'complains' do
expect(subject).to be false
expect(status_report[:errors]).to eq ["One of the lines below found in #{filename} doesn't match the expected format. Please make it look like the other lines, pay attention to periods and spaces."]
expect(status_report[:warnings]).to eq []
expect(status_report[:markdowns].map(&:message)).to eq [
+ "```markdown\nMissing star - [@dblock](https://github.com/dblock).\n```\n",
"```markdown\n* [#1](https://github.com/dblock/danger-changelog/pull/1) - Not a colon - [@dblock](https://github.com/dblock).\n```\n",
- "```markdown\n* [#1](https://github.com/dblock/danger-changelog/pull/1): No final period - [@dblock](https://github.com/dblock)\n```\n"
+ "```markdown\n* [#1](https://github.com/dblock/danger-changelog/pull/1): No final period - [@dblock](https://github.com/dblock)\n```\n",
+ "```markdown\n# [#1](https://github.com/dblock/danger-changelog/pull/1): Hash instead of star - [@dblock](https://github.com/dblock).\n```\n",
+ "```markdown\n* [#1](https://github.com/dblock/danger-changelog/pull/1): Extra period. - [@dblock](https://github.com/dblock).\n```\n"
]
end
end
end
end