Sha256: 4dfed21e1b25a50c2b35a790e0e91b8c63dfeb318459394408012b201d342059

Contents?: true

Size: 285 Bytes

Versions: 2

Compression:

Stored size: 285 Bytes

Contents

module TestUnit
  class BbqTestGenerator < Rails::Generators::NamedBase
    source_root File.expand_path(File.join(File.dirname(__FILE__), '../test_unit/templates'))

    def create_test
      template "bbq_test_case.rb", "test/acceptance/#{name.underscore}_test.rb"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bbq-rails-0.4.0 lib/generators/test_unit/bbq_test_generator.rb
bbq-rails-0.3.0 lib/generators/test_unit/bbq_test_generator.rb