cornucopia 0.1.25 → 0.1.26
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/lib/cornucopia/rspec_hooks.rb +3 -2
- data/lib/cornucopia/version.rb +1 -1
- 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: 0341e9cbf03a45b514d035fbb123c70bedfafe30
|
|
4
|
+
data.tar.gz: 62ac2758b090dc315d6b29c1efb14f1163ddc0d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e8bb87494ff9e3b8be037ae29ae92cc77eab61f84da84ab8349f774ebb469dcd0091eff255aed639a9eb353479a348dc1c9dd4d1d3f9e74a4fd211293ec18d7
|
|
7
|
+
data.tar.gz: eb0f0c7891a38db3cc045dc5cf6fd96eef24b370987fc96377068edda7cd0aca69972c5cbe5e52bb08a76c1e4791a40e33c45a847d0cd9445bbe0d8033523dff
|
|
@@ -24,9 +24,9 @@ RSpec.configure do |config|
|
|
|
24
24
|
# Capybara resets the page in an after or around block before the around diagnostics can get around to dumping it
|
|
25
25
|
# so by adding an after block here, we can dump the Capybara results if there is a problem.
|
|
26
26
|
config.after(:each) do |example|
|
|
27
|
-
test_example = example
|
|
28
|
-
test_example ||= example.example if example.respond_to?(:example)
|
|
27
|
+
test_example = example.example if example.respond_to?(:example)
|
|
29
28
|
test_example ||= self.example if self.respond_to?(:example)
|
|
29
|
+
test_example ||= example
|
|
30
30
|
|
|
31
31
|
if (test_example.exception)
|
|
32
32
|
report = Cornucopia::Util::ReportBuilder.current_report
|
|
@@ -55,6 +55,7 @@ RSpec.configure do |config|
|
|
|
55
55
|
|
|
56
56
|
test_example = example.example if example.respond_to?(:example)
|
|
57
57
|
test_example ||= self.example if self.respond_to?(:example)
|
|
58
|
+
test_example ||= example
|
|
58
59
|
|
|
59
60
|
Cornucopia::Util::ReportBuilder.current_report.within_test(test_example.full_description) do
|
|
60
61
|
example.run
|
data/lib/cornucopia/version.rb
CHANGED