Skip to content

Commit 485a3d0

Browse files
committed
Merge branch 'master' into sass-scanner
2 parents 5bea8e3 + e135654 commit 485a3d0

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

test/functional/for_redcloth.rb

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require 'test/unit'
2-
require File.expand_path('../../lib/assert_warning', __FILE__)
32

43
$:.unshift File.expand_path('../../../lib', __FILE__)
54
require 'coderay'
@@ -66,19 +65,14 @@ def test_for_redcloth_escapes2
6665
# See http://jgarber.lighthouseapp.com/projects/13054/tickets/124-code-markup-does-not-allow-brackets.
6766
def test_for_redcloth_false_positive
6867
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
7370
# false positive, but expected behavior / known issue
7471
assert_equal "<p><span lang=\"ruby\" class=\"CodeRay\">_dff.skjd</span></p>",
7572
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
7874
<pre><code>[project]_dff.skjd</code></pre>
79-
BLOCKCODE
80-
RedCloth.new('bc. [project]_dff.skjd').to_html
81-
end
75+
BLOCKCODE
8276
end
8377

8478
end if defined? RedCloth

test/unit/plugin.rb

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
require 'test/unit'
22
require 'pathname'
3-
require File.expand_path('../../lib/assert_warning', __FILE__)
43

54
$:.unshift File.expand_path('../../../lib', __FILE__)
65
require 'coderay'
@@ -39,9 +38,7 @@ def test_load_all
3938

4039
def test_default
4140
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
4542
end
4643
assert_equal PluginsWithDefault::Default, PluginsWithDefault.default
4744
end

0 commit comments

Comments
 (0)