Sha256: 76232de9a8c1174636517cb5c4697474717415693ff22be2b429702d34ff8f33

Contents?: true

Size: 447 Bytes

Versions: 2

Compression:

Stored size: 447 Bytes

Contents

module Rspec
  class BbqInstallGenerator < Rails::Generators::Base
    source_root File.expand_path(File.join(File.dirname(__FILE__), '../rspec/templates'))

    def create_directory
      empty_directory "spec/acceptance"
    end

    def generate_test_user
      empty_directory "spec/support"
      template "test_user.rb", "spec/support/test_user.rb"
    end

    def show_readme
      readme "README" if behavior == :invoke
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bbq-rails-0.4.0 lib/generators/rspec/bbq_install_generator.rb
bbq-rails-0.3.0 lib/generators/rspec/bbq_install_generator.rb