rspec-illustrate 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/formatters/yard.rb +1 -1
- data/lib/rspec/illustrate.rb +1 -1
- data/lib/rspec/illustrate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e5ee437294a70725baa52ef62ca1b73ad79a670
|
4
|
+
data.tar.gz: 1d0351a0abc9321228de503075611eeb8629c13d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44e2216364d56f651d66112b1991104c59d43dd596db36b57d3dd3ea98026e62bd0541b83f0047894596fbd98e732fbc2192db84e9d66d4810673b5166c471f8
|
7
|
+
data.tar.gz: d88b6aa1360e19fc5717bf422ed155e7083c5e8171d87a9cdddb9e94b533f9459e96e110edce678a3b0a255dbf070d59c20c004e05d267c9ca437a33f81df444
|
@@ -92,7 +92,7 @@ module RSpec
|
|
92
92
|
end
|
93
93
|
|
94
94
|
if illustration.has_key?(:html) then
|
95
|
-
node.add_element(REXML::Document.new(illustration[:html]))
|
95
|
+
node.add_element(REXML::Document.new(illustration[:html]).root)
|
96
96
|
else
|
97
97
|
node.add_element("pre", {'class'=>'rspec_illustration_content'}).text =
|
98
98
|
REXML::Text.new(illustration[:text], true, nil, false)
|
data/lib/rspec/illustrate.rb
CHANGED
@@ -12,7 +12,7 @@ module RSpec
|
|
12
12
|
# @param args [Array<Hash, Symbol>] Additional options.
|
13
13
|
# @return The given illustration object.
|
14
14
|
def illustrate(content, *args)
|
15
|
-
illustration = { :text => content,
|
15
|
+
illustration = { :text => content.to_s,
|
16
16
|
:show_when_passed => true,
|
17
17
|
:show_when_failed => true,
|
18
18
|
:show_when_pending => true }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-illustrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Schlyter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|