Module: RSpecParameterizedContext

Defined in:
lib/rspec_parameterized_context.rb

Defined Under Namespace

Classes: Context

Instance Method Summary collapse

Instance Method Details

#parameterized(&block) ⇒ Object



73
74
75
76
77
# File 'lib/rspec_parameterized_context.rb', line 73

def parameterized(&block)
  parameterized_context = RSpecParameterizedContext::Context.new(self)
  parameterized_context.instance_exec(&block)
  parameterized_context.define_spec
end