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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c74254f157fc7bd00c804d17ae6b1e91f276bbd
4
- data.tar.gz: 7ac93728ac6e0323586e8313b0ef192f8589d497
3
+ metadata.gz: d05d9acd352595e01d0810a9b5a28c5f765339a9
4
+ data.tar.gz: 39de91d11961df2ae8ac5825d35adb973ad885ab
5
5
  SHA512:
6
- metadata.gz: 34032bf5ef08729415aa1e9a31b7f85fdee5b4e02e6cba93fb59544fff8ed4af8ae728603650aa3718fc0fe59ec7c300339a063400a7337eaa2b266221d70177
7
- data.tar.gz: 2af54a2d3c1cf96292cb766a9e4fa89cd4435e82ec5d4d2578035272aa642fad4d52fcd013c70f6f3d186b963f78d0e51b9561d61358047ee0856f8e8008e1e5
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:
@@ -21,7 +21,11 @@ module YARD
21
21
 
22
22
  Class.new(this.class).class_eval do
23
23
  require 'minitest/autorun'
24
- require 'doctest_helper'
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
@@ -1,5 +1,5 @@
1
1
  module YARD
2
2
  module Doctest
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
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.3
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-02 00:00:00.000000000 Z
11
+ date: 2014-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard