Sha256: 390b3853a541390ae82195605997c20da9055116ca79e55e74a1b450018dd724

Contents?: true

Size: 671 Bytes

Versions: 5

Compression:

Stored size: 671 Bytes

Contents

module Playmo
  module Recipes
    class RspecRecipe < Playmo::Recipe
      source_root File.expand_path('../templates/rspec_recipe', __FILE__)

      def setup
        question "Would you like to use Rspec in this project?" => :install_rspec
      end

    protected

      def install_rspec
        gem 'rspec'

        # TODO: copy helpers etc
        # TODO: factory_girl etc
      end

    end
  end
end

# Write down this recipe to our Cookbook if it's available
require File.dirname(__FILE__) + '/application_helper_recipe'
Playmo::Cookbook.instance.insert_after(Playmo::Recipes::ApplicationHelperRecipe, Playmo::Recipes::RspecRecipe) if defined?(Playmo::Cookbook)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playmo-0.0.14 lib/playmo/recipes/rspec_recipe.rb
playmo-0.0.13 lib/playmo/recipes/rspec_recipe.rb
playmo-0.0.12 lib/playmo/recipes/rspec_recipe.rb
playmo-0.0.11 lib/playmo/recipes/rspec_recipe.rb
playmo-0.0.10 lib/playmo/recipes/rspec_recipe.rb