Sha256: 1012fecc7a5da3e9948b8fef49d88a55984a85677c1958b3f50b2274fdc3926b

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

# Application template recipe for the rails_apps_composer. Change the recipe here:
# https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/tests4.rb

after_bundler do
  say_wizard "recipe running after 'bundle install'"
  if prefer :tests, 'rspec'
    say_wizard "recipe installing RSpec"
    generate 'testing:configure rspec -f'
  end
  if prefer :continuous_testing, 'guard'
    say_wizard "recipe initializing Guard"
    run 'bundle exec guard init'
  end
  git :add => '-A' if prefer :git, true
  git :commit => '-qm "rails_apps_composer: testing framework"' if prefer :git, true
end

after_everything do
  say_wizard "recipe running after everything"
  if (prefer :authentication, 'devise') && (prefer :tests, 'rspec')
    generate 'testing:configure devise -f'
  end
  if (prefer :authentication, 'omniauth') && (prefer :tests, 'rspec')
    generate 'testing:configure omniauth -f'
  end
  if (prefer :authorization, 'pundit') && (prefer :tests, 'rspec')
    generate 'testing:configure pundit -f'
  end
end

__END__

name: tests4
description: "Add testing framework."
author: RailsApps

requires: [setup, gems]
run_after: [setup, gems]
category: testing

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_apps_composer-2.6.13 recipes/tests4.rb