Sha256: 7297123103a8bca1613998eb551c719275d54a48ae8700704dcdc58fbd7b3799

Contents?: true

Size: 787 Bytes

Versions: 1

Compression:

Stored size: 787 Bytes

Contents

task :features => [:disable_config] do
  system "bundle exec cucumber --publish-quiet"
end

task :spec do
  system "bundle exec rspec"
end

task :disable_config do
  pplconfig = File.expand_path("~/.pplconfig")
  bkpconfig = File.expand_path("~/.pplconfig.bkp")
  if File.exists? pplconfig
    FileUtils.mv pplconfig, bkpconfig
  end
  at_exit { Rake::Task["enable_config"].invoke }
end

task :enable_config do
  pplconfig = File.expand_path("~/.pplconfig")
  bkpconfig = File.expand_path("~/.pplconfig.bkp")
  if File.exists? bkpconfig
    FileUtils.mv bkpconfig, pplconfig
  end
end

task :feature, :feature_name do |task, params|
  Rake::Task["disable_config"].invoke
  system "bundle exec cucumber features/#{params[:feature_name]}.feature"
  Rake::Task["enable_config"].invoke
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ppl-4.0.3 Rakefile