yard-doctest 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/yard-doctest.feature +6 -2
- data/lib/yard/doctest/example.rb +5 -1
- data/lib/yard/doctest/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: d05d9acd352595e01d0810a9b5a28c5f765339a9
|
4
|
+
data.tar.gz: 39de91d11961df2ae8ac5825d35adb973ad885ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 876ea8d1f88bbb88b7c3cc2ec06318985122d86a5fb96f36f66c08cb47c74073e55a1e0dd287b7a1414b85f7d1b9a5985fe4374a622cc4942157551b1906fb75
|
7
|
+
data.tar.gz: dd9b9c3afea9b45560a421b2d9ad15563db3c510e33e90fc18df6d21601847e2a23c2af8d6b1db70f10c319decdf46002207ad5223c173f5c557bf7904ab3ebb
|
@@ -356,8 +356,8 @@ Feature: yard doctest
|
|
356
356
|
When I run `bundle exec rake yard:doctest`
|
357
357
|
Then the exit status should be 1
|
358
358
|
|
359
|
-
Scenario: requires doctest helper
|
360
|
-
Given a file named "doctest_helper.rb" with:
|
359
|
+
Scenario Outline: requires doctest helper
|
360
|
+
Given a file named "<directory>/doctest_helper.rb" with:
|
361
361
|
"""
|
362
362
|
require 'app/app'
|
363
363
|
|
@@ -379,6 +379,10 @@ Feature: yard doctest
|
|
379
379
|
"""
|
380
380
|
When I run `bundle exec yard doctest`
|
381
381
|
Then the output should contain "1 runs, 1 assertions, 0 failures, 0 errors, 0 skips"
|
382
|
+
Examples:
|
383
|
+
| directory |
|
384
|
+
| . |
|
385
|
+
| support |
|
382
386
|
|
383
387
|
Scenario: shares binding between asserts
|
384
388
|
Given a file named "doctest_helper.rb" with:
|
data/lib/yard/doctest/example.rb
CHANGED
@@ -21,7 +21,11 @@ module YARD
|
|
21
21
|
|
22
22
|
Class.new(this.class).class_eval do
|
23
23
|
require 'minitest/autorun'
|
24
|
-
|
24
|
+
if File.exists?('doctest_helper.rb')
|
25
|
+
require 'doctest_helper'
|
26
|
+
elsif File.exists?('support/doctest_helper.rb')
|
27
|
+
require 'support/doctest_helper'
|
28
|
+
end
|
25
29
|
|
26
30
|
unless YARD::Doctest.skips.any? { |skip| this.definition.include?(skip) }
|
27
31
|
describe this.definition do
|
data/lib/yard/doctest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard-doctest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Rodionov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|