rpeg-multimarkdown 0.2 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.markdown +4 -0
- data/Rakefile +1 -1
- data/test/multimarkdown_test.rb +8 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 153a563efa3e2d15f47874308fb8ff2060752964
|
4
|
+
data.tar.gz: 9459fdddb5815ca24026973817a7744b82da97a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 375d6044a041d31de74bb7e166900f5f1df03a32bf75694544f0cf455c93475afc8b40d2165331658a8d2a60185116abb9f54f942510e98037062461c019f71c
|
7
|
+
data.tar.gz: 667c389c1a25ee4abda0acc197bb86a93e6adc91a5505dd6e27a7a9714c0997b459f7929daa3bee6831b7dbc3213a9dc08a414f7d40f5d124bda125821bc2b99
|
data/README.markdown
CHANGED
@@ -50,6 +50,10 @@ Hacking:
|
|
50
50
|
Changes
|
51
51
|
-------
|
52
52
|
|
53
|
+
* [Version 0.2.1](http://github.com/djungelvral/rpeg-multimarkdown/tree/v0.2.1)
|
54
|
+
* Fixed ruby module tests, which weren't actually running
|
55
|
+
* [Version 0.2](http://github.com/djungelvral/rpeg-multimarkdown/tree/v0.2)
|
56
|
+
* Bringing everything up to date with the last version of peg-multimarkdown
|
53
57
|
* [Version 0.1.1](http://github.com/djungelvral/rpeg-multimarkdown/tree/v0.1.1)
|
54
58
|
|
55
59
|
COPYING
|
data/Rakefile
CHANGED
data/test/multimarkdown_test.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
$: << File.join(File.dirname(__FILE__), "../lib")
|
2
2
|
|
3
3
|
require 'minitest'
|
4
|
+
require 'minitest/autorun'
|
4
5
|
require 'multimarkdown'
|
5
6
|
|
6
7
|
MARKDOWN_TEST_DIR = "#{File.dirname(__FILE__)}/MultiMarkdownTest"
|
7
8
|
|
8
|
-
class MultiMarkdownTest < MiniTest::
|
9
|
+
class MultiMarkdownTest < MiniTest::Test
|
9
10
|
|
10
11
|
def test_that_extension_methods_are_present_on_multimarkdown_class
|
11
12
|
assert MultiMarkdown.instance_methods.include?(:to_html),
|
@@ -36,8 +37,8 @@ class MultiMarkdownTest < MiniTest::Unit::TestCase
|
|
36
37
|
assert_respond_to multimarkdown, restriction
|
37
38
|
assert_respond_to multimarkdown, "#{restriction}="
|
38
39
|
end
|
39
|
-
|
40
|
-
|
40
|
+
refute_equal true, multimarkdown.filter_html
|
41
|
+
refute_equal true, multimarkdown.filter_styles
|
41
42
|
|
42
43
|
multimarkdown = MultiMarkdown.new('Hello World.', :filter_html, :filter_styles)
|
43
44
|
assert_equal true, multimarkdown.filter_html
|
@@ -48,7 +49,7 @@ class MultiMarkdownTest < MiniTest::Unit::TestCase
|
|
48
49
|
multimarkdown = MultiMarkdown.new('Hello World.')
|
49
50
|
assert_respond_to multimarkdown, :fold_lines
|
50
51
|
assert_respond_to multimarkdown, :fold_lines=
|
51
|
-
|
52
|
+
refute_equal true, multimarkdown.fold_lines
|
52
53
|
|
53
54
|
multimarkdown = MultiMarkdown.new('Hello World.', :fold_lines)
|
54
55
|
assert_equal true, multimarkdown.fold_lines
|
@@ -56,7 +57,7 @@ class MultiMarkdownTest < MiniTest::Unit::TestCase
|
|
56
57
|
|
57
58
|
def test_that_redcloth_to_html_with_single_arg_is_supported
|
58
59
|
multimarkdown = MultiMarkdown.new('Hello World.')
|
59
|
-
|
60
|
+
multimarkdown.to_html(true)
|
60
61
|
end
|
61
62
|
|
62
63
|
|
@@ -73,13 +74,13 @@ class MultiMarkdownTest < MiniTest::Unit::TestCase
|
|
73
74
|
define_method "test_#{method_name}" do
|
74
75
|
multimarkdown = MultiMarkdown.new(File.read(text_file),:compatibility)
|
75
76
|
actual_html = multimarkdown.to_html
|
76
|
-
|
77
|
+
refute_nil actual_html
|
77
78
|
end
|
78
79
|
|
79
80
|
define_method "test_#{method_name}_with_smarty_enabled" do
|
80
81
|
multimarkdown = MultiMarkdown.new(File.read(text_file), :smart)
|
81
82
|
actual_html = multimarkdown.to_html
|
82
|
-
|
83
|
+
refute_nil actual_html
|
83
84
|
end
|
84
85
|
|
85
86
|
end
|