Class: Suture::PrescribesTestPlan

Inherits:
Object
  • Object
show all
Defined in:
lib/suture/verify/prescribes_test_plan.rb

Constant Summary collapse

UN_ENV_IABLE_OPTIONS =
[:name, :subject, :comparator, :after_subject,
:on_subject_error, :expected_error_types]

Instance Method Summary collapse

Instance Method Details

#prescribe(name, options = {}) ⇒ Object



9
10
11
12
13
14
# File 'lib/suture/verify/prescribes_test_plan.rb', line 9

def prescribe(name, options = {})
  Value::TestPlan.new(Suture.config.
                      merge(options).
                      merge(:name => name).
                      merge(Suture::Util::Env.to_map(UN_ENV_IABLE_OPTIONS)))
end