Sha256: 1be3085ac5d987f2d12c11612532e3577bc590093c826207dcef81ad542dc9ab

Contents?: true

Size: 508 Bytes

Versions: 3

Compression:

Stored size: 508 Bytes

Contents

module Merb
  module Test

    # 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.
    module WebratHelper
      def app
        Merb::Config[:app]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
merb-core-1.1.3 lib/merb-core/test/helpers/webrat_helper.rb
merb-core-1.1.2 lib/merb-core/test/helpers/webrat_helper.rb
merb-core-1.1.1 lib/merb-core/test/helpers/webrat_helper.rb