spec/markdown/heading_spec.rb in tbpgr_utils-0.0.116 vs spec/markdown/heading_spec.rb in tbpgr_utils-0.0.117

- old
+ new

@@ -2,17 +2,17 @@ require 'spec_helper' require 'markdown/heading' describe MarkdownString do [*1..6].each do |i| - context "heading#{i.to_s}" do + context "heading#{i}" do cases = [ { case_no: 1, case_title: 'normal case', - input: "heading#{i.to_s}", - expected: "#{'#' * i} heading#{i.to_s}", + input: "heading#{i}", + expected: "#{'#' * i} heading#{i}", }, { case_no: 2, case_title: 'empty case', input: '', @@ -39,10 +39,10 @@ # -- given -- # nothing # -- when -- - actual = MarkdownString.send "heading#{i.to_s}", c[:input] + actual = MarkdownString.send "heading#{i}", c[:input] # -- then -- expect(actual).to eq(c[:expected]) ensure case_after c