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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b822c22e98c50f9a1ddd581934caccca34b562c
4
- data.tar.gz: cbeaff9343b040ae9ec13f23fda3af8d39d5ae3f
3
+ metadata.gz: 4e5ee437294a70725baa52ef62ca1b73ad79a670
4
+ data.tar.gz: 1d0351a0abc9321228de503075611eeb8629c13d
5
5
  SHA512:
6
- metadata.gz: 5312f1ee2307e954240964da871308c172cd99d5eceb4a4fb992cb76573e2426975aec51f1a9c84f4931a3c12c0f9b1f0efa80bdff2f4537a81f0c4eaf0afb42
7
- data.tar.gz: cf6b281984a72fb99dded2eeb08810dfc97530ba48b208263bb1f7b24e6c3a17c4bdfc4ed7caf371b5781ca890a9fee67d160d5518f34d455ded5a1348e304ef
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)
@@ -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 }
@@ -1,6 +1,6 @@
1
1
  module RSpec
2
2
  module Illustrate
3
3
  # The version used by gemspec
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
6
6
  end
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.1
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-27 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core