spec/intranet/pandoc/responder_spec.rb in intranet-pandoc-1.0.0 vs spec/intranet/pandoc/responder_spec.rb in intranet-pandoc-1.1.0

- old
+ new

@@ -110,12 +110,12 @@ content: '<section>' \ "<p>We use a filter that may produce:</p>\n" \ "<ul>\n" \ "<li><a href=\"index.html\">relative internal links</a></li>\n" \ "<li><a href=\"/index.html\">absolute internal links</a></li>\n" \ - "<li><a href=\"http://example.com\" target=\"_blank\">HTTP external links</a></li>\n" \ - "<li><a href=\"https://example.com\" target=\"_blank\">HTTPS external links</a></li>\n" \ + "<li><a href=\"http://example.com\" target=\"_blank\">HTTP external\nlinks</a></li>\n" \ + "<li><a href=\"https://example.com\" target=\"_blank\">HTTPS external\nlinks</a></li>\n" \ "</ul>\n" \ '</section>', title: 'TITLE', stylesheets: ['design/style.css'], scripts: [] @@ -169,9 +169,15 @@ # PNG file code, mime, content = @responder.generate_page('/alpha.png', {}) expect(code).to eql(200) expect(mime).to eql('image/png') expect(content).to eql(File.read(File.join(__dir__, 'testroot', 'alpha.png'))) + + # SVG file + code, mime, content = @responder.generate_page('/decimal.svg', {}) + expect(code).to eql(200) + expect(mime).to eql('image/svg+xml') + expect(content).to eql(File.read(File.join(__dir__, 'testroot', 'decimal.svg'))) end end context 'otherwise' do it 'should return an HTTP 404 error' do