Sha256: 3214d2bb701834918d626e541f75fbf8cb060a0dbf333fd19d241c5f930656a2
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 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 TranslatableRecords::Generators::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.1 | test/generator_test.rb |