yard-doctest 0.1.2 → 0.1.3
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/features/yard-doctest.feature +23 -1
- data/lib/yard/doctest/rake.rb +1 -1
- data/lib/yard/doctest/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c74254f157fc7bd00c804d17ae6b1e91f276bbd
|
4
|
+
data.tar.gz: 7ac93728ac6e0323586e8313b0ef192f8589d497
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34032bf5ef08729415aa1e9a31b7f85fdee5b4e02e6cba93fb59544fff8ed4af8ae728603650aa3718fc0fe59ec7c300339a063400a7337eaa2b266221d70177
|
7
|
+
data.tar.gz: 2af54a2d3c1cf96292cb766a9e4fa89cd4435e82ec5d4d2578035272aa642fad4d52fcd013c70f6f3d186b963f78d0e51b9561d61358047ee0856f8e8008e1e5
|
@@ -332,7 +332,29 @@ Feature: yard doctest
|
|
332
332
|
end
|
333
333
|
"""
|
334
334
|
When I run `bundle exec rake yard:doctest`
|
335
|
-
Then the
|
335
|
+
Then the exit status should be 0
|
336
|
+
And the output should contain "1 runs, 1 assertions, 0 failures, 0 errors, 0 skips"
|
337
|
+
|
338
|
+
Scenario: propagates exit code to rake task
|
339
|
+
Given a file named "doctest_helper.rb" with:
|
340
|
+
"""
|
341
|
+
require 'app/app'
|
342
|
+
"""
|
343
|
+
And a file named "app/app.rb" with:
|
344
|
+
"""
|
345
|
+
# @example
|
346
|
+
# sum(2, 2) #=> 5
|
347
|
+
def sum(one, two)
|
348
|
+
one + two
|
349
|
+
end
|
350
|
+
"""
|
351
|
+
And a file named "Rakefile" with:
|
352
|
+
"""
|
353
|
+
require 'yard-doctest'
|
354
|
+
YARD::Doctest::RakeTask.new
|
355
|
+
"""
|
356
|
+
When I run `bundle exec rake yard:doctest`
|
357
|
+
Then the exit status should be 1
|
336
358
|
|
337
359
|
Scenario: requires doctest helper
|
338
360
|
Given a file named "doctest_helper.rb" with:
|
data/lib/yard/doctest/rake.rb
CHANGED
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.3
|
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-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.2.
|
137
|
+
rubygems_version: 2.2.2
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: Doctests from YARD examples
|