Sha256: 79d4852c181e16e04fb9b3dd37733aaca289cffe7799526742461d180140c3e5

Contents?: true

Size: 421 Bytes

Versions: 9

Compression:

Stored size: 421 Bytes

Contents

module Rspec
  class BbqInstallGenerator < Rails::Generators::Base
    source_root Bbq.root.join("lib/generators/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

9 entries across 9 versions & 1 rubygems

Version Path
bbq-0.2.1 lib/generators/rspec/bbq_install_generator.rb
bbq-0.2.0 lib/generators/rspec/bbq_install_generator.rb
bbq-0.1.0 lib/generators/rspec/bbq_install_generator.rb
bbq-0.0.4 lib/generators/rspec/bbq_install_generator.rb
bbq-0.0.3 lib/generators/rspec/bbq_install_generator.rb
bbq-0.0.2 lib/generators/rspec/bbq_install_generator.rb
bbq-0.0.2.beta.3 lib/generators/rspec/bbq_install_generator.rb
bbq-0.0.2.beta.2 lib/generators/rspec/bbq_install_generator.rb
bbq-0.0.2.beta.1 lib/generators/rspec/bbq_install_generator.rb