Class: FixtureValidationGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/fixture_validation_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_testObject



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/generators/fixture_validation_generator.rb', line 4

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