Skip to content

Commit

Permalink
remove legacy test
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmaroli committed May 7, 2018
1 parent 498b4aa commit 5d50e58
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions test/test_tags.rb
Expand Up @@ -134,37 +134,6 @@ def highlight_block_with_opts(options_string)
end
end

context "in safe mode" do
setup do
@tag = highlight_block_with_opts("text ")
end

should "allow linenos" do
sanitized = @tag.sanitized_opts({ :linenos => true }, true)
assert_equal true, sanitized[:linenos]
end

should "allow hl_lines" do
sanitized = @tag.sanitized_opts({ :hl_lines => %w(1 2 3 4) }, true)
assert_equal %w(1 2 3 4), sanitized[:hl_lines]
end

should "allow cssclass" do
sanitized = @tag.sanitized_opts({ :cssclass => "ahoy" }, true)
assert_equal "ahoy", sanitized[:cssclass]
end

should "allow startinline" do
sanitized = @tag.sanitized_opts({ :startinline => true }, true)
assert_equal true, sanitized[:startinline]
end

should "strip unknown options" do
sanitized = @tag.sanitized_opts({ :light => true }, true)
assert_nil sanitized[:light]
end
end

context "with the rouge highlighter" do
context "post content has highlight tag" do
setup do
Expand Down

0 comments on commit 5d50e58

Please sign in to comment.