Module: Merb::Test

Defined in:
lib/merb-core/test.rb,
lib/merb-core/test/test_ext/rspec.rb,
lib/merb-core/test/helpers/cookie_jar.rb,
lib/merb-core/test/helpers/route_helper.rb,
lib/merb-core/test/helpers/webrat_helper.rb,
lib/merb-core/test/helpers/request_helper.rb,
lib/merb-core/test/helpers/controller_helper.rb,
lib/merb-core/test/helpers/mock_request_helper.rb

Defined Under Namespace

Modules: ControllerHelper, Helpers, MakeRequest, Matchers, MultipartRequestHelper, RequestHelper, RouteHelper, Rspec, ViewHelper, WebratHelper Classes: Cookie, CookieJar, ExampleGroup

Class Method Summary collapse

Class Method Details

.add_helpers(&block) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/merb-core/test/test_ext/rspec.rb', line 31

def self.add_helpers(&block)
  if Merb.test_framework == :rspec
    ExampleGroup.class_eval(&block)
  else
    raise NotImplementedError
  end
end