cucumber 1.3.11 → 1.3.12
Sign up to get free protection for your applications and to get access to all the features.
- data/History.md +3 -0
- data/cucumber.gemspec +1 -1
- data/lib/cucumber/platform.rb +1 -1
- data/lib/cucumber/rb_support/rb_language.rb +2 -29
- metadata +7 -7
data/History.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## [v1.3.13](https://github.com/cucumber/cucumber/compare/v1.3.11...v1.3.12)
|
2
|
+
* Use MultiTest to handle assertions library selection (@tooky)
|
3
|
+
* Adds full support for rails 4.1 / Minitest
|
1
4
|
## [v1.3.11](https://github.com/cucumber/cucumber/compare/v1.3.10...v1.3.11)
|
2
5
|
* Add Ruby 2.1 Support ([#644](https://github.com/cucumber/cucumber/pull/644) @tooky, @chrismdp)
|
3
6
|
|
data/cucumber.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.add_dependency 'diff-lcs', '>= 1.1.3'
|
18
18
|
s.add_dependency 'gherkin', '~> 2.12'
|
19
19
|
s.add_dependency 'multi_json', '>= 1.7.5', '< 2.0'
|
20
|
-
s.add_dependency 'multi_test', '>= 0.
|
20
|
+
s.add_dependency 'multi_test', '>= 0.1.1'
|
21
21
|
|
22
22
|
s.add_development_dependency 'aruba', '~> 0.5.2'
|
23
23
|
s.add_development_dependency 'json', '~> 1.7'
|
data/lib/cucumber/platform.rb
CHANGED
@@ -4,7 +4,7 @@ require 'rbconfig'
|
|
4
4
|
|
5
5
|
module Cucumber
|
6
6
|
unless defined?(Cucumber::VERSION)
|
7
|
-
VERSION = '1.3.
|
7
|
+
VERSION = '1.3.12'
|
8
8
|
BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber')
|
9
9
|
LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib')
|
10
10
|
JRUBY = defined?(JRUBY_VERSION)
|
@@ -5,18 +5,7 @@ require 'cucumber/rb_support/rb_step_definition'
|
|
5
5
|
require 'cucumber/rb_support/rb_hook'
|
6
6
|
require 'cucumber/rb_support/rb_transform'
|
7
7
|
require 'cucumber/rb_support/snippet'
|
8
|
-
|
9
|
-
begin
|
10
|
-
require 'rspec/expectations'
|
11
|
-
rescue LoadError
|
12
|
-
begin
|
13
|
-
require 'spec/expectations'
|
14
|
-
require 'spec/runner/differs/default'
|
15
|
-
require 'ostruct'
|
16
|
-
rescue LoadError
|
17
|
-
require 'test/unit/assertions'
|
18
|
-
end
|
19
|
-
end
|
8
|
+
require 'multi_test'
|
20
9
|
|
21
10
|
module Cucumber
|
22
11
|
module RbSupport
|
@@ -56,22 +45,6 @@ module Cucumber
|
|
56
45
|
@step_definitions = []
|
57
46
|
RbDsl.rb_language = self
|
58
47
|
@world_proc = @world_modules = nil
|
59
|
-
@assertions_module = find_best_assertions_module
|
60
|
-
end
|
61
|
-
|
62
|
-
def find_best_assertions_module
|
63
|
-
begin
|
64
|
-
::RSpec::Matchers
|
65
|
-
rescue NameError
|
66
|
-
# RSpec >=1.2.4
|
67
|
-
begin
|
68
|
-
options = OpenStruct.new(:diff_format => :unified, :context_lines => 3)
|
69
|
-
Spec::Expectations.differ = Spec::Expectations::Differs::Default.new(options)
|
70
|
-
::Spec::Matchers
|
71
|
-
rescue NameError
|
72
|
-
::Test::Unit::Assertions
|
73
|
-
end
|
74
|
-
end
|
75
48
|
end
|
76
49
|
|
77
50
|
def step_matches(name_to_match, name_to_format)
|
@@ -145,7 +118,7 @@ module Cucumber
|
|
145
118
|
|
146
119
|
def extend_world
|
147
120
|
@current_world.extend(RbWorld)
|
148
|
-
|
121
|
+
MultiTest.extend_with_best_assertion_library(@current_world)
|
149
122
|
(@world_modules || []).each do |mod|
|
150
123
|
@current_world.extend(mod)
|
151
124
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: builder
|
@@ -88,7 +88,7 @@ dependencies:
|
|
88
88
|
requirements:
|
89
89
|
- - ! '>='
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.
|
91
|
+
version: 0.1.1
|
92
92
|
type: :runtime
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -96,7 +96,7 @@ dependencies:
|
|
96
96
|
requirements:
|
97
97
|
- - ! '>='
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: 0.
|
99
|
+
version: 0.1.1
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
101
|
name: aruba
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1002,7 +1002,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1002
1002
|
version: '0'
|
1003
1003
|
segments:
|
1004
1004
|
- 0
|
1005
|
-
hash:
|
1005
|
+
hash: -4582240401117440396
|
1006
1006
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1007
1007
|
none: false
|
1008
1008
|
requirements:
|
@@ -1011,13 +1011,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1011
1011
|
version: '0'
|
1012
1012
|
segments:
|
1013
1013
|
- 0
|
1014
|
-
hash:
|
1014
|
+
hash: -4582240401117440396
|
1015
1015
|
requirements: []
|
1016
1016
|
rubyforge_project:
|
1017
1017
|
rubygems_version: 1.8.23
|
1018
1018
|
signing_key:
|
1019
1019
|
specification_version: 3
|
1020
|
-
summary: cucumber-1.3.
|
1020
|
+
summary: cucumber-1.3.12
|
1021
1021
|
test_files:
|
1022
1022
|
- features/assertions.feature
|
1023
1023
|
- features/autoformat_profile_output.feature
|