new stuff
This commit is contained in:
commit
dfb814cd50
@ -15,6 +15,24 @@ module CukePack
|
|||||||
directory '.', '.'
|
directory '.', '.'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc "wip-guard", "Add the WIP guard to your Guardfile"
|
||||||
|
def wip_guard
|
||||||
|
FileUtils.touch 'Guardfile'
|
||||||
|
|
||||||
|
append_file 'Guardfile', <<-RB
|
||||||
|
# added by cuke-pack
|
||||||
|
|
||||||
|
group :wip do
|
||||||
|
guard 'cucumber', :env => :cucumber, :cli => '-p wip' do
|
||||||
|
watch(%r{^features/.+\.feature$})
|
||||||
|
watch(%r{^(app|lib).*}) { 'features' }
|
||||||
|
watch(%r{^features/support/.+$}) { 'features' }
|
||||||
|
watch(%r{^features/step_definitions/(.+)\.rb$}) { 'features' }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
RB
|
||||||
|
end
|
||||||
|
|
||||||
default_task :install
|
default_task :install
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
5
lib/cuke-pack/support/timecop.rb
Normal file
5
lib/cuke-pack/support/timecop.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
require 'timecop'
|
||||||
|
|
||||||
|
After do
|
||||||
|
Timecop.return
|
||||||
|
end
|
@ -21,3 +21,5 @@ require 'cuke-pack/support/flay'
|
|||||||
# require 'cuke-pack/support/fakefs'
|
# require 'cuke-pack/support/fakefs'
|
||||||
# require 'cuke-pack/support/mocha'
|
# require 'cuke-pack/support/mocha'
|
||||||
|
|
||||||
|
# Timecop support
|
||||||
|
# require 'cuke-pack/support/timecop'
|
||||||
|
Loading…
Reference in New Issue
Block a user