Module: Merb::Test

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

Defined Under Namespace

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

Class Method Summary collapse

Class Method Details

.add_helpers(&block) ⇒ Object



17
18
19
20
21
22
23
# File 'merb-core/lib/merb-core/test/test_ext/rspec.rb', line 17

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