summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-09 19:46:45 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-09 19:46:45 +0200
commit485a3d0c51ffb7424807bb5f804ddae30cb4dd74 (patch)
tree1f848f7149463e474223cc4284a5834546efeabe /test
parent5bea8e3041de85266c3596627224ced102f195e0 (diff)
parente13565493d07582d9e9f9cffb671ee0a3590ab51 (diff)
downloadcoderay-485a3d0c51ffb7424807bb5f804ddae30cb4dd74.tar.gz
Merge branch 'master' into sass-scanner
Diffstat (limited to 'test')
-rw-r--r--test/functional/for_redcloth.rb14
-rwxr-xr-xtest/unit/plugin.rb5
2 files changed, 5 insertions, 14 deletions
diff --git a/test/functional/for_redcloth.rb b/test/functional/for_redcloth.rb
index e980667..9fd244e 100644
--- a/test/functional/for_redcloth.rb
+++ b/test/functional/for_redcloth.rb
@@ -1,5 +1,4 @@
require 'test/unit'
-require File.expand_path('../../lib/assert_warning', __FILE__)
$:.unshift File.expand_path('../../../lib', __FILE__)
require 'coderay'
@@ -66,19 +65,14 @@ class BasicTest < Test::Unit::TestCase
# See http://jgarber.lighthouseapp.com/projects/13054/tickets/124-code-markup-does-not-allow-brackets.
def test_for_redcloth_false_positive
require 'coderay/for_redcloth'
- assert_warning 'CodeRay::Scanners could not load plugin :project; falling back to :text' do
- assert_equal '<p><code>[project]_dff.skjd</code></p>',
- RedCloth.new('@[project]_dff.skjd@').to_html
- end
+ assert_equal '<p><code>[project]_dff.skjd</code></p>',
+ RedCloth.new('@[project]_dff.skjd@').to_html
# false positive, but expected behavior / known issue
assert_equal "<p><span lang=\"ruby\" class=\"CodeRay\">_dff.skjd</span></p>",
RedCloth.new('@[ruby]_dff.skjd@').to_html
- assert_warning 'CodeRay::Scanners could not load plugin :project; falling back to :text' do
- assert_equal <<-BLOCKCODE.chomp,
+ assert_equal <<-BLOCKCODE.chomp, RedCloth.new('bc. [project]_dff.skjd').to_html
<pre><code>[project]_dff.skjd</code></pre>
- BLOCKCODE
- RedCloth.new('bc. [project]_dff.skjd').to_html
- end
+ BLOCKCODE
end
end if defined? RedCloth \ No newline at end of file
diff --git a/test/unit/plugin.rb b/test/unit/plugin.rb
index a1d06e1..41eec51 100755
--- a/test/unit/plugin.rb
+++ b/test/unit/plugin.rb
@@ -1,6 +1,5 @@
require 'test/unit'
require 'pathname'
-require File.expand_path('../../lib/assert_warning', __FILE__)
$:.unshift File.expand_path('../../../lib', __FILE__)
require 'coderay'
@@ -39,9 +38,7 @@ class PluginScannerTest < Test::Unit::TestCase
def test_default
assert_nothing_raised do
- assert_warning 'PluginScannerTest::PluginsWithDefault could not load plugin :gargamel; falling back to :default_plugin' do
- assert_operator PluginsWithDefault[:gargamel], :<, PluginsWithDefault::Plugin
- end
+ assert_operator PluginsWithDefault[:gargamel], :<, PluginsWithDefault::Plugin
end
assert_equal PluginsWithDefault::Default, PluginsWithDefault.default
end