busser-shindo 0.3.2 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e007b8a4b50b1e0bd2683a8dda1a8f40f3a183bd
4
- data.tar.gz: d2b895f654d9942d40862499b4e2f00bac39fbfd
3
+ metadata.gz: 78655bdd6c3e45e4acd88698f6e8c78b5a3cd7fa
4
+ data.tar.gz: 7fc63aa1daf9fd0931f823160c1b948009f12bad
5
5
  SHA512:
6
- metadata.gz: bed5d51d3f8b633d202f749f9b03fe9ac5aa501d4dc22dd2461797b40fa37570436b66369caf633d2e80f4b8c7a1ba037123e35566fa8fc9602d899ce061b23a
7
- data.tar.gz: 036d2adf07a76966d62865b473b7857626c42cdaf533fb60b054d7f15e386191d9d7f71f18ab17eb616ccbcf3114a7a3cc95397c6f60ab303097bcd5a7fd943a
6
+ metadata.gz: a7cddc11892a85b9df142ab8183fffffae1327c488a8abfc92bc5c09d3c5cbc387a7e5c5addd5e20b1325074048a5521f369b779636a9b7a4c1ad24ff8f19ef2
7
+ data.tar.gz: 12ac9ee0c620050299b46ef387929587efb823bea5daa1c01da4603baa07bc97102871fa151984fb4eefd00c8ee0cc780c39414d4a243188b6ffdb5cfbda9c69
@@ -1,3 +1,7 @@
1
+ ## 0.3.3
2
+
3
+ - enable helper
4
+
1
5
  ## 0.3.2
2
6
 
3
7
  - should put tests at `tests` directory.
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- Author:: Yukihiko Sawanobori (<sawanoboriyu@higanworks.com)
1
+ Author:: Sawanobori Yukihiko (<sawanoboriyu@higanworks.com)
2
2
 
3
- Copyright (C) 2014, Yukihiko Sawanobori
3
+ Copyright (C) 2014, Sawanobori Yukihiko
4
4
 
5
5
  Licensed under the Apache License, Version 2.0 (the "License");
6
6
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -67,7 +67,7 @@ example:
67
67
  ## <a name="authors"></a> Authors
68
68
 
69
69
 
70
- Created and maintained by [Yukihiko Sawanobori][author] (<sawanoboriyu@higanworks.com>)
70
+ Created and maintained by [Sawanobori Yukihiko][author] (<sawanoboriyu@higanworks.com>)
71
71
  (Original busser-serverspec) Created and maintained by [HIGUCHI Daisuke][author] (<d-higuchi@creationline.com>)
72
72
 
73
73
  ## <a name="license"></a> License
@@ -6,7 +6,7 @@ require 'busser/shindo/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'busser-shindo'
8
8
  spec.version = Busser::Shindo::VERSION
9
- spec.authors = ['Yukihiko Sawanobori']
9
+ spec.authors = ['Sawanobori Yukihiko']
10
10
  spec.email = ['sawanoboriyu@higanworks.com']
11
11
  spec.description = %q{A Busser runner plugin for Shindo}
12
12
  spec.summary = spec.description
@@ -10,7 +10,22 @@ Feature: Test command
10
10
  Given a suite directory named "shindo"
11
11
 
12
12
  Scenario: A passing test suite
13
- Given a file in suite "shindo" named "shindo_tests.rb" with:
13
+ Given a file in suite "shindo" named "tests/shindo_tests.rb" with:
14
+ """
15
+ Shindo.tests do
16
+ returns(true) { true }
17
+ returns(false) { false }
18
+ end
19
+ """
20
+ When I run `busser test shindo`
21
+ Then the output should contain:
22
+ """
23
+ 2 succeeded in
24
+ """
25
+ And the exit status should be 0
26
+
27
+ Scenario: A passing test suite using helper
28
+ Given a file in suite "shindo" named "tests/helper.rb" with:
14
29
  """
15
30
  Shindo.tests do
16
31
  returns(true) { true }
@@ -25,7 +40,7 @@ Feature: Test command
25
40
  And the exit status should be 0
26
41
 
27
42
  Scenario: A failing test suite
28
- Given a file in suite "shindo" named "shindo_tests.rb" with:
43
+ Given a file in suite "shindo" named "tests/shindo_tests.rb" with:
29
44
  """
30
45
  Shindo.tests do
31
46
  returns(true) { true }
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  #
3
- # Author:: Yukihiko Sawanobori (<sawanoboriyu@higanworks.com>)
3
+ # Author:: Sawanobori Yukihiko (<sawanoboriyu@higanworks.com>)
4
4
  # Author:: HIGUCHI Daisuke (<d-higuchi@creationline.com>)
5
5
  #
6
- # Copyright (C) 2014, Yukihiko Sawanobori
6
+ # Copyright (C) 2014, Sawanobori Yukihiko
7
7
  #
8
8
  # Licensed under the Apache License, Version 2.0 (the "License");
9
9
  # you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ require 'busser/runner_plugin'
21
21
 
22
22
  # A Busser runner plugin for Shindo.
23
23
  #
24
- # @author Yukihiko Sawanobori (<sawanoboriyu@higanworks.com>)
24
+ # @author Sawanobori Yukihiko (<sawanoboriyu@higanworks.com>)
25
25
  #
26
26
  class Busser::RunnerPlugin::Shindo < Busser::RunnerPlugin::Base
27
27
  postinstall do
@@ -32,7 +32,6 @@ class Busser::RunnerPlugin::Shindo < Busser::RunnerPlugin::Base
32
32
  def test
33
33
  ## Refered from busser-rspec
34
34
  gemfile_path = File.join(suite_path, 'shindo', 'Gemfile')
35
- tests_path = File.join(suite_path, 'shindo', 'tests')
36
35
  if File.exists?(gemfile_path)
37
36
  # Bundle install local completes quickly if the gems are already found locally
38
37
  # it fails if it needs to talk to the internet. The || below is the fallback
@@ -44,6 +43,6 @@ class Busser::RunnerPlugin::Shindo < Busser::RunnerPlugin::Base
44
43
  end
45
44
 
46
45
  banner('run shindont')
47
- run!("env PATH=#{ENV['PATH']}:#{Gem.bindir} shindont #{tests_path}")
46
+ run!("cd #{suite_path('shindo')} && env PATH=#{ENV['PATH']}:#{Gem.bindir} shindont")
48
47
  end
49
48
  end
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  #
3
- # Author:: Yukihiko Sawanobori (<sawanoboriyu@higanworks.com>)
3
+ # Author:: Sawanobori Yukihiko (<sawanoboriyu@higanworks.com>)
4
4
  # Author:: HIGUCHI Daisuke (<d-higuchi@creationline.com>)
5
5
  #
6
- # Copyright (C) 2014, Yukihiko Sawanobori
6
+ # Copyright (C) 2014, Sawanobori Yukihiko
7
7
  #
8
8
  # Licensed under the Apache License, Version 2.0 (the "License");
9
9
  # you may not use this file except in compliance with the License.
@@ -22,6 +22,6 @@ module Busser
22
22
  module Shindo
23
23
 
24
24
  # Version string for the Shindo Busser runner plugin
25
- VERSION = "0.3.2"
25
+ VERSION = "0.3.3"
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: busser-shindo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
- - Yukihiko Sawanobori
7
+ - Sawanobori Yukihiko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []