Changeset [0fc743189218e7bc2d57bc48ea8293376993c283] by James Adam

May 5th, 2011 @ 04:03 PM

By extracting the application into a known file and class, we can also extract a test helper for reuse in other applications.

The test helper relies on rack-test, and creates an 'app' method accordingly. This app method returns an instance of the Application class as set up by the application, but also injects a sandbox soup where any snips written should end up.
https://github.com/lazyatom/vanilla-rb/commit/0fc743189218e7bc2d57b...

Committed by James Adam

  • A lib/vanilla/test_helper.rb
  • M Gemfile.lock
  • M lib/vanilla.rb
  • M pristine_app/application.rb
  • M test/renderers/erb_renderer_test.rb
  • M test/renderers/haml_renderer_test.rb
  • M test/test_helper.rb
  • M test/vanilla_app_test.rb
  • M vanilla.gemspec
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A sort of meta-wiki thing