Module: RSpec::Specify::Parameterized::ExampleGroupMethods
- Included in:
- Core::ExampleGroup
- Defined in:
- lib/specify/rspec/parameterized.rb
Defined Under Namespace
Classes: Parameter
Instance Method Summary collapse
- #data_condition(*args, &block) ⇒ Object (also: #where)
- #data_table(*args, &block) ⇒ Object (also: #where_table)
- #test_condition(*args, &block) ⇒ Object (also: #with_those)
Instance Method Details
#data_condition(*args, &block) ⇒ Object Also known as: where
19 20 21 |
# File 'lib/specify/rspec/parameterized.rb', line 19 def data_condition(*args, &block) set_parameters(args, false, &block) end |
#data_table(*args, &block) ⇒ Object Also known as: where_table
23 24 25 |
# File 'lib/specify/rspec/parameterized.rb', line 23 def data_table(*args, &block) set_parameters(args, true, &block) end |
#test_condition(*args, &block) ⇒ Object Also known as: with_those
27 28 29 30 31 32 33 34 |
# File 'lib/specify/rspec/parameterized.rb', line 27 def test_condition(*args, &block) if @parameter.nil? @parameterized_pending_cases ||= [] @parameterized_pending_cases << [args, block] else define_cases(@parameter, *args, &block) end end |