Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Changeset [0fc743189218e7bc2d57bc48ea8293376993c283] by James Adam

Revision 0fc743189218e7bc2d57bc48ea8293376993c283, committed 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...

9 changed files

  • 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