# File lib/generators/templates/full/spec/spec_helper.rb, line 33 def standalone? Merb.root == ::<%= module_name %>.root end end end end Spec::Runner.configure do |config| config.include(Merb::Test::ViewHelper) config.include(Merb::Test::RouteHelper) config.include(Merb::Test::ControllerHelper) config.include(Merb::Test::SliceHelper) end # You can add your own helpers here # Merb::Test.add_helpers do def mount_slice Merb::Router.prepare { add_slice(:<%= module_name %>, "<%= base_name %>") } if standalone? end