Sha256: 534c0f9f782ffd1e223a2c0809a1055c8f9dd606edfa4bd7d3495da86071a382

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

require 'rails/generators/named_base'

class FixtureValidationGenerator < Rails::Generators::Base
  def create_test
    create_file 'test/models/fixture_validation_test.rb' do
      <<END
require 'test_helper'
require 'fixture_validation'

class FixtureValidationTest < ActiveSupport::TestCase
  include FixtureValidation
end

END
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fixture_validation-0.2 lib/generators/fixture_validation_generator.rb