parameterized_testing-rspec 0.1.0 → 0.2.0

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
  SHA256:
3
- metadata.gz: 1aac7cb97d57c502628bbefe2a3d9786d682217c92a794bfe1bd3d34421d32cf
4
- data.tar.gz: 702ea1e122d8e928089def95d337b681b093e67ff2e72648806cc0841203f9c0
3
+ metadata.gz: f5da53ab9ebecdcbc002bcf2ba02af85424ceff216413c9c3560efb79cd081f4
4
+ data.tar.gz: e17b2391cb770502fa9f4a6c0b02820d2baba9918eab2bfb5cb9095da1ccd3bf
5
5
  SHA512:
6
- metadata.gz: 271791288d9136390efd6c86764a4cef5c302493402174c717e133c16664170f1ef72a693bdee85fe27b2dd9a0c1f2d798c18a3b6ab67d3fa02bf8ae4eb6e55e
7
- data.tar.gz: 4c208cefe8fc989ad933e7c420682d111836d06a8bd9a7a9b4431a37dd79351d05be03002c50197b330ae2fd224fd64ea94b874068176e6b63cb629c08a7c933
6
+ metadata.gz: a018f8b1842813e557220a40deac6550d79a2c3922d9793bbe19bda73997d0f051572420f91ce4dba1688f7b3a10ad84dace8fea1cd8adb7244ca765e739edfc
7
+ data.tar.gz: a7662305b98d93dd119e4d16530586f756068942c709e94a96708767bf83afcf7cf929b2d7c7a3c72645cbf4e9e251dc6deba375f305b56fa0b92fb6897d6ec4
@@ -3,9 +3,10 @@
3
3
  module ParameterizedTesting
4
4
  module RSpec
5
5
  # The parameterized testing driver for RSpec.
6
- # This module is automatically extended to `RSpec::Core::ExampleGroup`.
6
+ # This module is automatically extended to {RSpec::Core::ExampleGroup}.
7
7
  module Driver
8
8
  # Entry point of the parameterized testing for RSpec.
9
+ # See https://github.com/yubrot/ruby_parameterized_testing
9
10
  # @param params [Array<Symbol>] parameter names
10
11
  def parameterized(*params, &)
11
12
  signature = ::ParameterizedTesting::Signature.new(*params)
@@ -30,6 +31,7 @@ module ParameterizedTesting
30
31
  end
31
32
  end
32
33
 
34
+ # @!visibility private
33
35
  def input(...)
34
36
  raise ParameterizedTesting::RSpec::InvalidInputCallError unless @_parameterized_testing_ctx
35
37
  end
@@ -37,6 +39,7 @@ module ParameterizedTesting
37
39
  end
38
40
  end
39
41
 
42
+ # @!visibility private
40
43
  module RSpec
41
44
  module Core
42
45
  class ExampleGroup
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ParameterizedTesting
4
4
  module RSpec
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "parameterized_testing"
4
+
3
5
  require_relative "rspec/version"
4
6
  require_relative "rspec/driver"
5
7
 
@@ -7,7 +9,10 @@ module ParameterizedTesting
7
9
  module RSpec
8
10
  # Error raised when the format of the parameterized test input is incorrect.
9
11
  class InvalidInputFormatError < Exception # rubocop:disable Lint/InheritException
10
- attr_reader :input, :signature
12
+ # @return [Input]
13
+ attr_reader :input
14
+ # @return [Signature]
15
+ attr_reader :signature
11
16
 
12
17
  def initialize(message = nil, input:, signature:)
13
18
  @input = input
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parameterized_testing-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yubrot
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-08 00:00:00.000000000 Z
11
+ date: 2024-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parameterized_testing
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.0
19
+ version: 0.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.0
26
+ version: 0.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-core
29
29
  requirement: !ruby/object:Gem::Requirement