Method: Onceover::TestConfig#write_spec_test

Defined in:
lib/onceover/testconfig.rb

#write_spec_test(location, test) ⇒ Object



187
188
189
190
191
192
193
# File 'lib/onceover/testconfig.rb', line 187

def write_spec_test(location, test)
  # Use an ERB template to write a spec test
  File.write(
    "#{location}/#{test.to_s}_spec.rb",
    Onceover::Controlrepo.evaluate_template('test_spec.rb.erb', binding)
  )
end