Class: Suture::PrescribesTestPlan

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

Constant Summary collapse

UN_ENV_IABLE_OPTIONS =
[:name, :subject, :comparator]
DEFAULT_TEST_OPTIONS =
{
  :fail_fast => false
}

Instance Method Summary collapse

Instance Method Details

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



11
12
13
14
15
16
17
# File 'lib/suture/prescribes_test_plan.rb', line 11

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