test/general.rb in runeblog-0.1.2 vs test/general.rb in runeblog-0.1.3

- old
+ new

@@ -30,13 +30,13 @@ end def test_002_cmd_version out = cmd_version(nil) assert out.is_a?(String), "Expected a string returned" - lines = out.split("\n")[1] + lines = out assert lines =~ /\d+\.\d+\.\d+/m, - "Couldn't find version number" + "Couldn't find version number; found #{out.inspect}" end def test_003_list_views! out = cmd_list_views(nil) assert out.is_a?(String), "Expected a string returned" @@ -52,17 +52,17 @@ def test_005_lsd! out = cmd_list_drafts(nil) assert out.is_a?(String), "Expected a string returned" lines = out.split("\n").length - assert lines == 11, "Expecting 11 lines; got #{show_lines(out)}" + assert lines == 10, "Expecting 10 lines; got #{show_lines(out)}" end def test_006_lsp! out = cmd_list_posts(nil) assert out.is_a?(String), "Expected a string returned; got: #{out.inspect}" lines = out.split("\n").length - assert lines == 7, "Expecting 7 lines; got #{show_lines(out)}" + assert lines == 6, "Expecting 6 lines; got #{show_lines(out)}" end def test_007_parser parse_tests = { # Loading/trailing blanks as well