Sha256: 0a4f41cde10ce4844fe1029da0ff0bbb78053b5096aa718bcc95419ea2c629c6
Contents?: true
Size: 1011 Bytes
Versions: 1
Compression:
Stored size: 1011 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
generator-spec-0.5.0 | lib/generator_spec/rails_helpers/rails_helper.rb |