module RSpec::Rails module Helper include RSpec::Rails::BaseHelper def helper_file_name name, options=nil artifact_path name, :helper end def create_helper name, options={}, &block create_artifact(name, set(options, :helper), &block) end def insert_into_helper(name, options={}, &block) insert_content(name, set(options, :helper), &block) end alias_method :update_helper, :insert_into_helper def read_helper(name, options={}, &block) read_artifact(name, set(options, :helper), &block) end def remove_helper name remove_artifact name, :helper end def remove_helpers *names remove_artifacts :helper, *names end def helper_marker name, options=nil "#{name.to_s.camelize}Helper" end def new_helper_content name, content=nil, &block new_artifact_content name, :helper, content, &block end aliases_for :helper end end