Skip to content

Commit

Permalink
Autlink/markdown edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
veelenga committed Aug 4, 2017
1 parent 71b3afb commit fbd3e26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ shards:

autolink:
github: hugoabonizio/autolink.cr
version: 0.1.1
version: 0.1.2

baked_file_system:
github: schovi/baked_file_system
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies:

autolink:
github: hugoabonizio/autolink.cr
version: 0.1.1
version: 0.1.2

development_dependencies:
spec2:
Expand Down
5 changes: 3 additions & 2 deletions spec/models/announcement_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ describe Announcement do
end
end

pending "autolink/markdown edge case" do
it "autolink/markdown edge case" do
content = "<a href=\"hello\">http://example.com</a>"
expect(announcement(description: content).content).to eq content
expect(announcement(description: content).content)
.to eq "<p>&lt;a href=\"hello\"><a href=\"http://example.com\">http://example.com</a>&lt;/a></p>"
end
end

Expand Down

0 comments on commit fbd3e26

Please sign in to comment.