turnip_formatter 0.6.0.pre.beta.3 → 0.6.0.pre.beta.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67feb08897f64d961ba76a513c0db5b4b133c0d6
|
4
|
+
data.tar.gz: 923976e4503e4588819f9adc5b625e89505990b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41bc4fcec63fb4ef824d976b5f6c51f12f05d985716755fe1c1e6ee03cbab1ba7a5c00f007735c982d58b02d173f201bb2f7f2593356d508b7477995b7f3ff8f
|
7
|
+
data.tar.gz: 8a451d6cc4471516b21499385e7300c2decccc554a652fc9d614eec35323db7b1a0b70ade4b7c014b6092e231a790f4d19ed0c45196dfecae8aec5976525d0da
|
@@ -35,6 +35,21 @@ module TurnipFormatter::Renderer::Html
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
sub_test_case 'step should be escaped html style' do
|
39
|
+
def setup
|
40
|
+
resource = TurnipFormatter::Resource::Step.new(nil, sample_step_should_escaping)
|
41
|
+
@renderer = Step.new(resource)
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_render
|
45
|
+
rendered = @renderer.render
|
46
|
+
document = html_parse(@renderer.render).at_xpath('/div')
|
47
|
+
|
48
|
+
assert_not_nil(%r{<div class="step-title">When step >should< escaped</div>}.match(rendered))
|
49
|
+
assert_nil(document.at_css('div.step-body'))
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
38
53
|
private
|
39
54
|
|
40
55
|
def sample_step
|
@@ -45,6 +60,10 @@ module TurnipFormatter::Renderer::Html
|
|
45
60
|
sample_feature.scenarios[0].steps[1]
|
46
61
|
end
|
47
62
|
|
63
|
+
def sample_step_should_escaping
|
64
|
+
sample_feature.scenarios[0].steps[2]
|
65
|
+
end
|
66
|
+
|
48
67
|
def sample_feature
|
49
68
|
feature_build(feature_text)
|
50
69
|
end
|
@@ -59,6 +78,7 @@ module TurnipFormatter::Renderer::Html
|
|
59
78
|
"""
|
60
79
|
DocString
|
61
80
|
"""
|
81
|
+
When step >should< escaped
|
62
82
|
EOS
|
63
83
|
end
|
64
84
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turnip_formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.0.pre.beta.
|
4
|
+
version: 0.6.0.pre.beta.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wataru MIYAGUNI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: turnip
|