[DRE-maint] Bug#873165: tdiary-style-gfm FTBFS: 24 examples, 1 failure
Adrian Bunk
bunk at debian.org
Fri Aug 25 07:48:04 UTC 2017
Source: tdiary-style-gfm
Version: 0.4.1-1
Severity: serious
Some recent change in unstable makes tdiary-style-gfm FTBFS:
https://tests.reproducible-builds.org/debian/history/tdiary-style-gfm.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/tdiary-style-gfm.html
...
┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby2.3 from debian/ruby-tests.rake │
└──────────────────────────────────────────────────────────────────────────────┘
RUBYLIB=/build/1st/tdiary-style-gfm-0.4.1/debian/tdiary-style-gfm/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/tdiary-style-gfm/usr/share/rubygems-integration/all:/var/lib/gems/2.3.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0:/usr/share/rubygems-integration/2.3.0:/usr/share/rubygems-integration/all ruby2.3 -S rake -f debian/ruby-tests.rake
/usr/bin/ruby2.3 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation
TDiary::Style::GfmDiary
#append
HTML
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...># comment in code block\n</code></pre>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
CHTML
should eq "<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Time.at( 1041346800 ), \"su...re><code># comment in code block\n</code></pre>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n"
to_src
should eq "# subTitle\nhonbun\n\n## subTitleH4\nhonbun\n\n```\n# comment in code block\n```\n\n"
#replace
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...4>replaceTitleH4</h4>\n\n<p>replace</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
autolink
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...gle.com\">http://www.google.com</a></p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
auto imagelink
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...ogle.com/logo.jpg\" alt=\"google\"></p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
auto imagelink
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti....com\" target=\"_blank\">Anchor</a></p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
url syntax with code blocks
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...tp://example.com</a> is example.com</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
ignored url syntax with markdown anchor
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...le.com\">example</a> is example.com</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
plugin syntax
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...p>\n\n<p><%=plugin \"val\", 'val'%></p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
plugin syntax with url args
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...ttps://www.example.com/bar.html\"%></p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
link to my plugin
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...><%=my \"20120101p01\", \"Link\" %></p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
code highlighting
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...pan class=\"k\">end</span>\n</code></pre><%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
ignore emphasis
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...a</p>\n\n<p><%=isbn_left_image ''%></p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
twitter username
in plain context
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...ofollow\">a_matsuda</a> is amatsuda</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
with <pre>
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...</pre>\n\n<p>@a_matsuda is amatsuda</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
with <code>
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...e></p>\n\n<p>@a_matsuda is amatsuda</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
emoji
in plain context
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...' /> \u306F\u7F8E\u5473\u3057\u3044</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n" (FAILED - 1)
in (multiline) <pre>
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...\u7F8E\u5473\u3057\u3044\n</code></pre>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
in <code>
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...ode> \u306F\u7F8E\u5473\u3057\u3044</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
in <code> (with attribute)
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...ode> \u306F\u7F8E\u5473\u3057\u3044</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
do not modify original string
should eq "\n{{fn '\u30C6\u30B9\u30C8'}}\"\n\n"
stashes in pre, code, plugin
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...=plugin \"\\0\", \"\\1\", \"\\2\"%></p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
plugin syntax in pre, code block
should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...ddress}}</code> is golang template.</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
Failures:
1) TDiary::Style::GfmDiary emoji in plain context should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...' /> \u306F\u7F8E\u5473\u3057\u3044</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
Failure/Error: it { expect(@diary.to_html).to eq @html }
expected: "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...' /> \u306F\u7F8E\u5473\u3057\u3044</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
got: "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...' /> \u306F\u7F8E\u5473\u3057\u3044</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
(compared using ==)
Diff:
@@ -1,7 +1,7 @@
<div class="section">
<%=section_enter_proc( Time.at( 1041346800 ) )%>
<h3><%= subtitle_proc( Time.at( 1041346800 ), "subTitle" ) %></h3>
-<p><img src='http://www.webpagefx.com/tools/emoji-cheat-sheet/graphics/emojis/sushi.png' width='20' height='20' title='sushi' alt='sushi' class='emoji' /> ?????</p>
+<p><img src='//www.webpagefx.com/tools/emoji-cheat-sheet/graphics/emojis/sushi.png' width='20' height='20' title='sushi' alt='sushi' class='emoji' /> ?????</p>
<%=section_leave_proc( Time.at( 1041346800 ) )%>
</div>
# ./spec/tdiary/style/gfm_spec.rb:455:in `block (4 levels) in <top (required)>'
Finished in 0.04618 seconds (files took 1.1 seconds to load)
24 examples, 1 failure
Failed examples:
rspec ./spec/tdiary/style/gfm_spec.rb:455 # TDiary::Style::GfmDiary emoji in plain context should eq "<div class=\"section\">\n<%=section_enter_proc( Time.at( 1041346800 ) )%>\n<h3><%= subtitle_proc( Ti...' /> \u306F\u7F8E\u5473\u3057\u3044</p>\n<%=section_leave_proc( Time.at( 1041346800 ) )%>\n</div>\n"
/usr/bin/ruby2.3 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
ERROR: Test "ruby2.3" failed. Exiting.
dh_auto_install: dh_ruby --install /build/1st/tdiary-style-gfm-0.4.1/debian/tdiary-style-gfm returned exit code 1
debian/rules:9: recipe for target 'override_dh_auto_install' failed
make[1]: *** [override_dh_auto_install] Error 1
More information about the Pkg-ruby-extras-maintainers
mailing list