Module: RSpecRake

Defined in:
lib/rspec_rake.rb,
lib/rspec_rake/version.rb

Constant Summary collapse

VERSION =
'0.2.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.auto_reenableObject

Returns the value of attribute auto_reenable.



6
7
8
# File 'lib/rspec_rake.rb', line 6

def auto_reenable
  @auto_reenable
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (RSpecRake)

    the object that the method was called on



8
9
10
11
12
# File 'lib/rspec_rake.rb', line 8

def configure
  yield self

  Rake::Task.define_task(:environment)
end

.require_tasks(dir) ⇒ Object



14
15
16
17
18
# File 'lib/rspec_rake.rb', line 14

def require_tasks(dir)
  Dir.glob(File.join(dir, '*.rake')).each do |file|
    application.rake_require(File.basename(file).gsub('.rake', ''), [dir])
  end
end