Module: RSpecRake
- Defined in:
- lib/rspec_rake.rb,
lib/rspec_rake/version.rb
Constant Summary collapse
- VERSION =
'1.0.0'
Class Attribute Summary collapse
-
.auto_reenable ⇒ Object
Flag for method hook.
Class Method Summary collapse
-
.configure {|self| ... } ⇒ Object
This method exists only to clarify that these are RSpecRake configurations.
-
.require_tasks(dir) ⇒ Object
To define rake tasks, put your rake directory path.
Class Attribute Details
.auto_reenable ⇒ Object
Flag for method hook.
If true, call Rake::Task#reenable after Rake::Task#invoke
9 10 11 |
# File 'lib/rspec_rake.rb', line 9 def auto_reenable @auto_reenable end |
Class Method Details
.configure {|self| ... } ⇒ Object
This method exists only to clarify that these are RSpecRake configurations.
18 19 20 21 22 |
# File 'lib/rspec_rake.rb', line 18 def configure yield self Rake::Task.define_task(:environment) end |
.require_tasks(dir) ⇒ Object
To define rake tasks, put your rake directory path
26 27 28 29 30 |
# File 'lib/rspec_rake.rb', line 26 def require_tasks(dir) Dir.glob(File.join(dir, '*.rake')).each do |file| application.rake_require(File.basename(file).gsub('.rake', ''), [dir]) end end |