theforeman/foreman — pull request #134 by Pajk (2012-08-13 12:22:35+00:00)
Title: api v1 - config templates

I am not able to make all tests pass. Problem is with "should build pxe menu", could somebody help me with this?

It fails in render_safe with this error:
```
undefined method `new' for # (NoMethodError)
/home/ppokorny/.gem/ruby/1.9.1/gems/safemode-1.0.1/lib/safemode.rb:43:in `initialize'
/home/ppokorny/Projects/ruby/foreman/lib/foreman/renderer.rb:8:in `new'
/home/ppokorny/Projects/ruby/foreman/lib/foreman/renderer.rb:8:in `render_safe'
/home/ppokorny/Projects/ruby/foreman/app/controllers/api/v1/config_templates_controller.rb:71:in `build_pxe_default'
...
/home/ppokorny/Projects/ruby/foreman/test/functional/api/v1/config_templates_controller_test.rb:86:in `block (2 levels) in '
/home/ppokorny/Projects/ruby/foreman/test/test_helper.rb:30:in `as_user'
/home/ppokorny/Projects/ruby/foreman/test/functional/api/v1/config_templates_controller_test.rb:85:in `block in '
....
```