File tree 2 files changed +5
-14
lines changed
2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 1
1
require 'test/unit'
2
- require File . expand_path ( '../../lib/assert_warning' , __FILE__ )
3
2
4
3
$:. unshift File . expand_path ( '../../../lib' , __FILE__ )
5
4
require 'coderay'
@@ -66,19 +65,14 @@ def test_for_redcloth_escapes2
66
65
# See http://jgarber.lighthouseapp.com/projects/13054/tickets/124-code-markup-does-not-allow-brackets.
67
66
def test_for_redcloth_false_positive
68
67
require 'coderay/for_redcloth'
69
- assert_warning 'CodeRay::Scanners could not load plugin :project; falling back to :text' do
70
- assert_equal '<p><code>[project]_dff.skjd</code></p>' ,
71
- RedCloth . new ( '@[project]_dff.skjd@' ) . to_html
72
- end
68
+ assert_equal '<p><code>[project]_dff.skjd</code></p>' ,
69
+ RedCloth . new ( '@[project]_dff.skjd@' ) . to_html
73
70
# false positive, but expected behavior / known issue
74
71
assert_equal "<p><span lang=\" ruby\" class=\" CodeRay\" >_dff.skjd</span></p>" ,
75
72
RedCloth . new ( '@[ruby]_dff.skjd@' ) . to_html
76
- assert_warning 'CodeRay::Scanners could not load plugin :project; falling back to :text' do
77
- assert_equal <<-BLOCKCODE . chomp ,
73
+ assert_equal <<-BLOCKCODE . chomp , RedCloth . new ( 'bc. [project]_dff.skjd' ) . to_html
78
74
<pre><code>[project]_dff.skjd</code></pre>
79
- BLOCKCODE
80
- RedCloth . new ( 'bc. [project]_dff.skjd' ) . to_html
81
- end
75
+ BLOCKCODE
82
76
end
83
77
84
78
end if defined? RedCloth
Original file line number Diff line number Diff line change 1
1
require 'test/unit'
2
2
require 'pathname'
3
- require File . expand_path ( '../../lib/assert_warning' , __FILE__ )
4
3
5
4
$:. unshift File . expand_path ( '../../../lib' , __FILE__ )
6
5
require 'coderay'
@@ -39,9 +38,7 @@ def test_load_all
39
38
40
39
def test_default
41
40
assert_nothing_raised do
42
- assert_warning 'PluginScannerTest::PluginsWithDefault could not load plugin :gargamel; falling back to :default_plugin' do
43
- assert_operator PluginsWithDefault [ :gargamel ] , :< , PluginsWithDefault ::Plugin
44
- end
41
+ assert_operator PluginsWithDefault [ :gargamel ] , :< , PluginsWithDefault ::Plugin
45
42
end
46
43
assert_equal PluginsWithDefault ::Default , PluginsWithDefault . default
47
44
end
You can’t perform that action at this time.
0 commit comments