Sha256: cc0a588da6df1aa99e482c8eb6f1f2c8a2d489f20e78a7d4f0ea6d6ffea96935
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
require 'test_helper' require 'rails/generators' require 'generators/translation/translation_generator' class GeneratorsTest < ::Rails::Generators::TestCase destination Rails.root.join('tmp') teardown do FileUtils.rm_rf destination_root end test 'install' do self.class.tests TranslationGenerator run_generator %w(product) assert_file 'app/models/product_translation.rb' assert_migration 'db/migrate/create_product_translations.rb' migration = File.read(migration_file_name('db/migrate/create_product_translations.rb')) assert_includes migration, 't.string :name' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translatable_records-4.0.0.0 | test/generator_test.rb |