Sha256: e7c08d5cd771725eabe40fd5998996d6f6fb2e7d196370682ef57d56cd20fd3e

Contents?: true

Size: 508 Bytes

Versions: 8

Compression:

Stored size: 508 Bytes

Contents

module Pah
  module Templates
    class Rspec < Pah::Template
      def call
        copy_static_file 'spec/spec_helper.rb'
        copy_static_file 'spec/rails_helper.rb'

        %w(
          database_cleaner.rb
          factory_girl.rb
          suppress_log.rb
          vcr.rb
          random_timezone.rb
        ).each do |component|
          copy_static_file "spec/support/#{component}"
        end

        git add: 'spec'
        git_commit 'Add RSpec support files'
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pah-0.0.28 lib/pah/templates/rspec.rb
pah-0.0.27 lib/pah/templates/rspec.rb
pah-0.0.26 lib/pah/templates/rspec.rb
pah-0.0.25 lib/pah/templates/rspec.rb
pah-0.0.24 lib/pah/templates/rspec.rb
pah-0.0.23 lib/pah/templates/rspec.rb
pah-0.0.22 lib/pah/templates/rspec.rb
pah-0.0.21 lib/pah/templates/rspec.rb