Feature: Generating template files

  Background:
    Given a file named "Rakefile" with:
      """
      require 'dice_bag/tasks'

      # Simulate Rails being present. This should go away once processing of
      # config directory is not dependent on Rails detection.
      module Rails; end

      # Need to stop other Rails-dependent functionality tanking.
      class ::DiceBag::Project
        def self.name
          ''
        end
      end

      # Simulate Mysql2 being present. Should really just describe how to build
      # a template provider here instead.
      module Mysql2; end
      """

  Scenario: Generate standard template files
    # That the directory needs to exist is a bug!
    Given a directory named "config"
    When I run `rake config:generate_all`
    Then a file named "config/database.yml.dice" should exist


Add scenario covering template generation
Add scenario covering template generation

The workaround code in the background to this scenario will go once we
remove the Rails detection code and support recursive directory
processing.
