Module: Merb::Test::WebratHelper

Defined in:
lib/merb-core/test/helpers/webrat_helper.rb

Overview

A module to allow Webrat accessing the Merb rack application

Webrat tries to call on the context of the test example an app method which should return the Rack app Webrat will use.

Mix this module in to have fully working Webrat specs which uses the Merb application returned by the Bootloader with all the middleware you have in your app.

Instance Method Summary collapse

Instance Method Details

#appObject



13
14
15
# File 'lib/merb-core/test/helpers/webrat_helper.rb', line 13

def app
  Merb::Config[:app]
end