Sha256: 71fd484c83f3d21c89a81ee6a254a666a86936ca0c66b8725639a2c46e5759aa

Contents?: true

Size: 273 Bytes

Versions: 2

Compression:

Stored size: 273 Bytes

Contents

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

    def create_test
      template "bbq_spec.rb", "spec/acceptance/#{name.underscore}_spec.rb"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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