rspec-parameterized 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +22 -0
- data/README.md +1 -1
- data/lib/rspec/parameterized/table_syntax.rb +11 -5
- data/lib/rspec/parameterized/version.rb +1 -1
- data/rspec-parameterized.gemspec +1 -1
- data/spec/parametarized_spec.rb +2 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4ec74624713209b381c818242bdc31bed08c769
|
4
|
+
data.tar.gz: a369308c5fa930c420763d32dbdc7d3f5e856002
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21671b32125d34ef3efb84f11bbdb4a4a0f501f110c367e0b56b8999fa70254d7cd6dab31b33d0ac8ae485a2e7bcbbdb6345e262787cccc258c27940949799bb
|
7
|
+
data.tar.gz: 2142247c46e8093a87bfab1deb178185952be853068e7503c35861c990123dad2816a5eccaf6bc3698bec93ba443653b90ec1ce68698423fc020d1efec799a78
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [Unreleased](https://github.com/tomykaira/rspec-parameterized/tree/HEAD)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/tomykaira/rspec-parameterized/compare/v0.3.1...HEAD)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- Add rubygems version badge [\#38](https://github.com/tomykaira/rspec-parameterized/pull/38) ([sue445](https://github.com/sue445))
|
10
|
+
|
11
|
+
## [v0.3.1](https://github.com/tomykaira/rspec-parameterized/tree/v0.3.1) (2016-08-17)
|
12
|
+
[Full Changelog](https://github.com/tomykaira/rspec-parameterized/compare/v0.3.0...v0.3.1)
|
13
|
+
|
14
|
+
**Closed issues:**
|
15
|
+
|
16
|
+
- Support "||" syntax [\#34](https://github.com/tomykaira/rspec-parameterized/issues/34)
|
17
|
+
|
18
|
+
**Merged pull requests:**
|
19
|
+
|
20
|
+
- Set the caller of `.with\_them` to metadata of ExampleGroup [\#37](https://github.com/tomykaira/rspec-parameterized/pull/37) ([nalabjp](https://github.com/nalabjp))
|
21
|
+
- Add homepage url in gemspec [\#33](https://github.com/tomykaira/rspec-parameterized/pull/33) ([sue445](https://github.com/sue445))
|
22
|
+
- Tweak travis setting [\#32](https://github.com/tomykaira/rspec-parameterized/pull/32) ([sue445](https://github.com/sue445))
|
23
|
+
- Generate CHANGELOG [\#31](https://github.com/tomykaira/rspec-parameterized/pull/31) ([sue445](https://github.com/sue445))
|
24
|
+
|
3
25
|
## [v0.3.0](https://github.com/tomykaira/rspec-parameterized/tree/v0.3.0) (2016-02-22)
|
4
26
|
[Full Changelog](https://github.com/tomykaira/rspec-parameterized/compare/v0.2.0...v0.3.0)
|
5
27
|
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# RSpec::Parameterized [![Build Status](https://travis-ci.org/tomykaira/rspec-parameterized.svg)](https://travis-ci.org/tomykaira/rspec-parameterized)
|
1
|
+
# RSpec::Parameterized [![Gem Version](https://badge.fury.io/rb/rspec-parameterized.svg)](https://badge.fury.io/rb/rspec-parameterized) [![Build Status](https://travis-ci.org/tomykaira/rspec-parameterized.svg)](https://travis-ci.org/tomykaira/rspec-parameterized)
|
2
2
|
|
3
3
|
Support simple parameterized test syntax in rspec.
|
4
4
|
|
@@ -27,12 +27,18 @@ module RSpec
|
|
27
27
|
include TableSyntaxImplement
|
28
28
|
end
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create("2.4.0")
|
31
|
+
refine Integer do
|
32
|
+
include TableSyntaxImplement
|
33
|
+
end
|
34
|
+
else
|
35
|
+
refine Fixnum do
|
36
|
+
include TableSyntaxImplement
|
37
|
+
end
|
33
38
|
|
34
|
-
|
35
|
-
|
39
|
+
refine Bignum do
|
40
|
+
include TableSyntaxImplement
|
41
|
+
end
|
36
42
|
end
|
37
43
|
|
38
44
|
refine Array do
|
data/rspec-parameterized.gemspec
CHANGED
@@ -14,7 +14,7 @@ I was inspired by [udzura's mock](https://gist.github.com/1881139).}
|
|
14
14
|
gem.add_dependency('unparser')
|
15
15
|
gem.add_dependency('proc_to_ast')
|
16
16
|
gem.add_dependency('binding_of_caller')
|
17
|
-
gem.add_development_dependency('rake')
|
17
|
+
gem.add_development_dependency('rake', '< 12.0.0')
|
18
18
|
|
19
19
|
gem.files = `git ls-files`.split($\)
|
20
20
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/spec/parametarized_spec.rb
CHANGED
@@ -74,6 +74,7 @@ describe RSpec::Parameterized do
|
|
74
74
|
1 | 2 | 3
|
75
75
|
"hello " | "world" | "hello world"
|
76
76
|
[1, 2, 3] | [4, 5, 6] | [1, 2, 3, 4, 5, 6]
|
77
|
+
100000000000000000000 | 100000000000000000000 | 200000000000000000000
|
77
78
|
end
|
78
79
|
|
79
80
|
with_them do
|
@@ -90,6 +91,7 @@ describe RSpec::Parameterized do
|
|
90
91
|
1 | 2 | -> { eq(3) }
|
91
92
|
"hello " | "world" | -> { eq("hello world") }
|
92
93
|
[1, 2, 3] | [4, 5, 6] | -> { be_a(Array) }
|
94
|
+
100000000000000000000 | 100000000000000000000 | -> { eq(200000000000000000000) }
|
93
95
|
end
|
94
96
|
|
95
97
|
with_them do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-parameterized
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tomykaira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -90,16 +90,16 @@ dependencies:
|
|
90
90
|
name: rake
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - "
|
93
|
+
- - "<"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
95
|
+
version: 12.0.0
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- - "
|
100
|
+
- - "<"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
102
|
+
version: 12.0.0
|
103
103
|
description: RSpec::Parameterized supports simple parameterized test syntax in rspec.
|
104
104
|
email:
|
105
105
|
- tomykaira@gmail.com
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
147
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.6.
|
148
|
+
rubygems_version: 2.6.8
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: RSpec::Parameterized supports simple parameterized test syntax in rspec.
|