multi_test 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,8 @@
1
1
  rvm:
2
2
  - 1.9.3
3
3
  - 2.0.0
4
- - 2.1.0
4
+ - 2.1.3
5
+ - 2.2.0
5
6
  - jruby
6
7
  script: make
7
8
  before_install:
data/History.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## [v0.1.2](https://github.com/cucumber/multi_test/compare/v0.1.1...v0.1.2)
2
+
3
+ * Ensure that detecting assetion library doesn't fail if no test framework
4
+ included. Ruby 2.2 removed minitest from standard library. (@tooky, @jmoody)
5
+
6
+ ## [v0.1.1](https://github.com/cucumber/multi_test/compare/v0.1.0...v0.1.1)
7
+
8
+ * Remove incompatibility with ruby 1.8.7
9
+
10
+ ## [v0.1.0](https://github.com/cucumber/multi_test/compare/v0.0.3...v0.1.0)
11
+
12
+ * Detect best available assertion library for cucumber (@tooky)
13
+
1
14
  ## [v0.0.3](https://github.com/cucumber/multi_test/compare/v0.0.2...v0.0.3)
2
15
 
3
16
  * Fix for Rails 4.1, Minitest 5.x ([#4](https://github.com/cucumber/multi_test/pull/4) Andy Lindeman)
data/Makefile CHANGED
@@ -1,5 +1,3 @@
1
- GEMFILES=$(shell ls ./gemfiles/**/Gemfile)
2
-
3
1
  all:
4
2
  ./test/all
5
3
 
@@ -26,6 +26,13 @@ module MultiTest
26
26
 
27
27
  private
28
28
 
29
+ def self.null
30
+ AssertionLibrary.new(
31
+ proc { },
32
+ proc { }
33
+ )
34
+ end
35
+
29
36
  def self.available
30
37
  @available ||= [
31
38
  AssertionLibrary.new(
@@ -56,6 +63,9 @@ module MultiTest
56
63
  proc { require 'test/unit/assertions' },
57
64
  proc { |object| object.extend(Test::Unit::Assertions) }
58
65
  ),
66
+ # Null assertion library must come last to prevent exceptions if
67
+ # unable to load a test framework
68
+ AssertionLibrary.null
59
69
  ]
60
70
  end
61
71
  end
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'multi_test'
6
- s.version = '0.1.1'
6
+ s.version = '0.1.2'
7
7
  s.authors = ["Matt Wynne", "Steve Tooke"]
8
8
  s.description = 'Wafter-thin gem to help control rogue test/unit/autorun requires'
9
9
  s.summary = "multi-test-#{s.version}"
@@ -4,4 +4,6 @@ We build a matrix of test cases from the gemfiles and scenarios directories.
4
4
 
5
5
  The gemfiles contain each of the different gem configurations we want to test with. Then, for each gemfile, there's a scenarios file which lists the Ruby scripts from the scenarios directory that we'll run as tests in that gemfile's environment.
6
6
 
7
- Success for each test case is simply that nothing was written to standard output.
7
+ Success for each test case is:
8
+ 1. nothing was written to standard output
9
+ 2. the Ruby script exited with status 0 (i.e. no exception was raised)
@@ -1,3 +1,3 @@
1
1
  bundler_require.rb
2
- require_test_unit.rb
2
+ no_assertion_library.rb
3
3
 
@@ -1,3 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'rspec', '~> 3.0.0.beta'
3
+ gem 'rspec', '~> 3.0.0'
@@ -2,21 +2,21 @@ GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
4
  diff-lcs (1.2.5)
5
- rspec (3.0.0.beta2)
6
- rspec-core (= 3.0.0.beta2)
7
- rspec-expectations (= 3.0.0.beta2)
8
- rspec-mocks (= 3.0.0.beta2)
9
- rspec-core (3.0.0.beta2)
10
- rspec-support (= 3.0.0.beta2)
11
- rspec-expectations (3.0.0.beta2)
5
+ rspec (3.0.0)
6
+ rspec-core (~> 3.0.0)
7
+ rspec-expectations (~> 3.0.0)
8
+ rspec-mocks (~> 3.0.0)
9
+ rspec-core (3.0.4)
10
+ rspec-support (~> 3.0.0)
11
+ rspec-expectations (3.0.4)
12
12
  diff-lcs (>= 1.2.0, < 2.0)
13
- rspec-support (= 3.0.0.beta2)
14
- rspec-mocks (3.0.0.beta2)
15
- rspec-support (= 3.0.0.beta2)
16
- rspec-support (3.0.0.beta2)
13
+ rspec-support (~> 3.0.0)
14
+ rspec-mocks (3.0.4)
15
+ rspec-support (~> 3.0.0)
16
+ rspec-support (3.0.4)
17
17
 
18
18
  PLATFORMS
19
19
  ruby
20
20
 
21
21
  DEPENDENCIES
22
- rspec (~> 3.0.0.beta)
22
+ rspec (~> 3.0.0)
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'rspec', '~> 3.1.0'
@@ -0,0 +1,22 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ diff-lcs (1.2.5)
5
+ rspec (3.1.0)
6
+ rspec-core (~> 3.1.0)
7
+ rspec-expectations (~> 3.1.0)
8
+ rspec-mocks (~> 3.1.0)
9
+ rspec-core (3.1.7)
10
+ rspec-support (~> 3.1.0)
11
+ rspec-expectations (3.1.2)
12
+ diff-lcs (>= 1.2.0, < 2.0)
13
+ rspec-support (~> 3.1.0)
14
+ rspec-mocks (3.1.3)
15
+ rspec-support (~> 3.1.0)
16
+ rspec-support (3.1.2)
17
+
18
+ PLATFORMS
19
+ ruby
20
+
21
+ DEPENDENCIES
22
+ rspec (~> 3.1.0)
@@ -0,0 +1,3 @@
1
+ bundler_require.rb
2
+ rspec_matchers.rb
3
+
@@ -0,0 +1,11 @@
1
+ require "multi_test"
2
+
3
+ begin
4
+ MultiTest.extend_with_best_assertion_library(self)
5
+ rescue NoMethodError => e
6
+ if e.message =~ /extend_world/
7
+ raise 'no assertion library detected'
8
+ else
9
+ raise e
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Matt Wynne
@@ -9,7 +10,7 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-03-16 00:00:00.000000000 Z
13
+ date: 2015-02-12 00:00:00.000000000 Z
13
14
  dependencies: []
14
15
  description: Wafter-thin gem to help control rogue test/unit/autorun requires
15
16
  email: cukes@googlegroups.com
@@ -17,7 +18,7 @@ executables: []
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
- - ".travis.yml"
21
+ - .travis.yml
21
22
  - History.md
22
23
  - LICENSE
23
24
  - Makefile
@@ -56,6 +57,9 @@ files:
56
57
  - test/gemfiles/rspec-3.0/Gemfile
57
58
  - test/gemfiles/rspec-3.0/Gemfile.lock
58
59
  - test/gemfiles/rspec-3.0/scenarios
60
+ - test/gemfiles/rspec-3.1/Gemfile
61
+ - test/gemfiles/rspec-3.1/Gemfile.lock
62
+ - test/gemfiles/rspec-3.1/scenarios
59
63
  - test/gemfiles/test-unit-2.4.8/Gemfile
60
64
  - test/gemfiles/test-unit-2.4.8/Gemfile.lock
61
65
  - test/gemfiles/test-unit-2.4.8/scenarios
@@ -66,6 +70,7 @@ files:
66
70
  - test/scenarios/bundler_require.rb
67
71
  - test/scenarios/minitest_assertions.rb
68
72
  - test/scenarios/minitest_propagate_exit_code.rb
73
+ - test/scenarios/no_assertion_library.rb
69
74
  - test/scenarios/require_activesupport_testing_autorun.rb
70
75
  - test/scenarios/require_test_unit.rb
71
76
  - test/scenarios/rspec_matchers.rb
@@ -74,28 +79,29 @@ files:
74
79
  homepage: http://cukes.info
75
80
  licenses:
76
81
  - MIT
77
- metadata: {}
78
82
  post_install_message:
79
83
  rdoc_options:
80
- - "--charset=UTF-8"
84
+ - --charset=UTF-8
81
85
  require_paths:
82
86
  - lib
83
87
  required_ruby_version: !ruby/object:Gem::Requirement
88
+ none: false
84
89
  requirements:
85
- - - ">="
90
+ - - ! '>='
86
91
  - !ruby/object:Gem::Version
87
92
  version: '0'
88
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
+ none: false
89
95
  requirements:
90
- - - ">="
96
+ - - ! '>='
91
97
  - !ruby/object:Gem::Version
92
98
  version: '0'
93
99
  requirements: []
94
100
  rubyforge_project:
95
- rubygems_version: 2.2.0
101
+ rubygems_version: 1.8.23
96
102
  signing_key:
97
- specification_version: 4
98
- summary: multi-test-0.1.1
103
+ specification_version: 3
104
+ summary: multi-test-0.1.2
99
105
  test_files:
100
106
  - test/README.md
101
107
  - test/all
@@ -126,6 +132,9 @@ test_files:
126
132
  - test/gemfiles/rspec-3.0/Gemfile
127
133
  - test/gemfiles/rspec-3.0/Gemfile.lock
128
134
  - test/gemfiles/rspec-3.0/scenarios
135
+ - test/gemfiles/rspec-3.1/Gemfile
136
+ - test/gemfiles/rspec-3.1/Gemfile.lock
137
+ - test/gemfiles/rspec-3.1/scenarios
129
138
  - test/gemfiles/test-unit-2.4.8/Gemfile
130
139
  - test/gemfiles/test-unit-2.4.8/Gemfile.lock
131
140
  - test/gemfiles/test-unit-2.4.8/scenarios
@@ -136,6 +145,7 @@ test_files:
136
145
  - test/scenarios/bundler_require.rb
137
146
  - test/scenarios/minitest_assertions.rb
138
147
  - test/scenarios/minitest_propagate_exit_code.rb
148
+ - test/scenarios/no_assertion_library.rb
139
149
  - test/scenarios/require_activesupport_testing_autorun.rb
140
150
  - test/scenarios/require_test_unit.rb
141
151
  - test/scenarios/rspec_matchers.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 3b41bc5c7a1128a8567dcd787eff96aa80e5fcf2
4
- data.tar.gz: 7b42079c4ae326e285f9af1e6ffb6752990f3161
5
- SHA512:
6
- metadata.gz: 6fe478e631ef9c0b16f756e653968969540440c4edba9b39985886764ba072628768792f96ce82ae0026ce2329d73a20c586a683c9caf3405bbca0897bf51e14
7
- data.tar.gz: 1434199312ba7b4c27c9c2613a6f169c5e1936670e16c3e1a3ec0fce753414dc98a08f7ae47d1d458d6de8b5d734484cdc3e8eb003f34b570be0fd93b8f27356