yard-doctest 0.1.2 → 0.1.3

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: ca18f61aa4d2ab189d9e0edb48011a7423bf7a3c
4
- data.tar.gz: 0a84c6dd74503b1abcfe4b5b494725f6af6800ec
3
+ metadata.gz: 6c74254f157fc7bd00c804d17ae6b1e91f276bbd
4
+ data.tar.gz: 7ac93728ac6e0323586e8313b0ef192f8589d497
5
5
  SHA512:
6
- metadata.gz: 3ff564c3d96544f560d361c385330967844c19d7de10bca805673261b3f36ceb48dcf29b57e24efe83533ff1e360d9da15a4dd61967316ef13a42accdfa14d61
7
- data.tar.gz: 63d7ab908736488e14cd50ecbdde1c272d8f25399b00b5b3d340afbe6b3ccc1c65d01ff1bd64542f311e6eb195b261f2e8eeb89b2f773efd2d4a4ffa06421e02
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 output should contain "1 runs, 1 assertions, 0 failures, 0 errors, 0 skips"
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:
@@ -30,7 +30,7 @@ module YARD
30
30
  desc 'Run YARD doctests'
31
31
  task(name) do
32
32
  command = "yard doctest #{(doctest_opts << pattern).join(' ')}"
33
- system(command)
33
+ exit system(command)
34
34
  end
35
35
  end
36
36
 
@@ -1,5 +1,5 @@
1
1
  module YARD
2
2
  module Doctest
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
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.2
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-07-16 00:00:00.000000000 Z
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.0
137
+ rubygems_version: 2.2.2
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Doctests from YARD examples