rspec-parameterized-table_syntax 1.0.0.beta1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -3
- data/README.md +31 -16
- data/lib/rspec/parameterized/table_syntax/version.rb +1 -1
- data/lib/rspec-parameterized-table_syntax.rb +1 -0
- data/rspec-parameterized-table_syntax.gemspec +2 -1
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dbe2443b6376dd05abab890aa1ab9b6b20929ce8b46fe4a5318ce9638c7f797
|
4
|
+
data.tar.gz: 651872bbb60acfca7014977828143541efb33ca6288566e9f73f46b725e381fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fca039a92fc662171c1dae30a218d2419b16691c3c16777e26db860bde3926e08b1206930f8fa5754c27919b5dbcf34f1900fd8bd4ddb5fef9ec9865c2be590a
|
7
|
+
data.tar.gz: 6eb2fb8fbaed991a7ac97abb3134253d612e9a18f3074009e7f83fd82ee241a64c8a034fcd59589635c3eaf4ce94b28e2e4e3854b25796ba31db859926e59f36
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,24 +1,39 @@
|
|
1
1
|
# Rspec::Parameterized::TableSyntax
|
2
|
+
`rspec-parameterized-table_syntax` provides table syntax extension for [rspec-parameterized](https://github.com/tomykaira/rspec-parameterized).
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rspec/parameterized/table_syntax`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/rspec-parameterized-table_syntax.svg)](https://badge.fury.io/rb/rspec-parameterized-table_syntax)
|
5
|
+
[![RSpec](https://github.com/rspec-parameterized/rspec-parameterized-table_syntax/actions/workflows/rspec.yml/badge.svg)](https://github.com/rspec-parameterized/rspec-parameterized-table_syntax/actions/workflows/rspec.yml)
|
6
6
|
|
7
7
|
## Installation
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
8
|
+
```ruby
|
9
|
+
# Install all components
|
10
|
+
group :test do
|
11
|
+
gem "rspec-parameterized", ">= 1.0.0"
|
12
|
+
end
|
13
|
+
|
14
|
+
# Install only rspec-parameterized-table_syntax
|
15
|
+
group :test do
|
16
|
+
gem "rspec-parameterized-table_syntax", ">= 1.0.0"
|
17
|
+
end
|
18
|
+
```
|
18
19
|
|
19
20
|
## Usage
|
20
|
-
|
21
|
-
|
21
|
+
### Table Syntax Style (like Groovy spock)
|
22
|
+
```ruby
|
23
|
+
describe "plus" do
|
24
|
+
using RSpec::Parameterized::TableSyntax
|
25
|
+
where(:a, :b, :answer) do
|
26
|
+
1 | 2 | 3
|
27
|
+
5 | 8 | 13
|
28
|
+
0 | 0 | 0
|
29
|
+
end
|
30
|
+
with_them do
|
31
|
+
it "should do additions" do
|
32
|
+
expect(a + b).to eq answer
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
```
|
22
37
|
|
23
38
|
## Development
|
24
39
|
|
@@ -28,7 +43,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
28
43
|
|
29
44
|
## Contributing
|
30
45
|
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
46
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/rspec-parameterized/rspec-parameterized-table_syntax.
|
32
47
|
|
33
48
|
## License
|
34
49
|
|
@@ -0,0 +1 @@
|
|
1
|
+
require "rspec/parameterized/table_syntax"
|
@@ -19,6 +19,7 @@ I was inspired by [udzura's mock](https://gist.github.com/1881139).}
|
|
19
19
|
spec.metadata["homepage_uri"] = spec.homepage
|
20
20
|
spec.metadata["source_code_uri"] = spec.homepage
|
21
21
|
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
|
22
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
22
23
|
|
23
24
|
# Specify which files should be added to the gem when it is released.
|
24
25
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -32,7 +33,7 @@ I was inspired by [udzura's mock](https://gist.github.com/1881139).}
|
|
32
33
|
spec.require_paths = ["lib"]
|
33
34
|
|
34
35
|
spec.add_dependency "binding_of_caller"
|
35
|
-
spec.add_dependency "rspec-parameterized-core"
|
36
|
+
spec.add_dependency "rspec-parameterized-core", "< 2"
|
36
37
|
|
37
38
|
spec.add_development_dependency "rake"
|
38
39
|
spec.add_development_dependency "rspec"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-parameterized-table_syntax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
@@ -30,16 +30,16 @@ dependencies:
|
|
30
30
|
name: rspec-parameterized-core
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - "
|
33
|
+
- - "<"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
35
|
+
version: '2'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- - "
|
40
|
+
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '2'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: rake
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- LICENSE.txt
|
83
83
|
- README.md
|
84
84
|
- Rakefile
|
85
|
+
- lib/rspec-parameterized-table_syntax.rb
|
85
86
|
- lib/rspec/parameterized/table_syntax.rb
|
86
87
|
- lib/rspec/parameterized/table_syntax/table.rb
|
87
88
|
- lib/rspec/parameterized/table_syntax/table_syntax_implement.rb
|
@@ -95,6 +96,7 @@ metadata:
|
|
95
96
|
homepage_uri: https://github.com/rspec-parameterized/rspec-parameterized-table_syntax
|
96
97
|
source_code_uri: https://github.com/rspec-parameterized/rspec-parameterized-table_syntax
|
97
98
|
changelog_uri: https://github.com/rspec-parameterized/rspec-parameterized-table_syntax/blob/main/CHANGELOG.md
|
99
|
+
rubygems_mfa_required: 'true'
|
98
100
|
post_install_message:
|
99
101
|
rdoc_options: []
|
100
102
|
require_paths:
|
@@ -106,9 +108,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
108
|
version: 2.6.0
|
107
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
110
|
requirements:
|
109
|
-
- - "
|
111
|
+
- - ">="
|
110
112
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
113
|
+
version: '0'
|
112
114
|
requirements: []
|
113
115
|
rubygems_version: 3.2.22
|
114
116
|
signing_key:
|