Sha256: c36688e16d086d2bf2e47ebf3b03068ba7d331c82b769af71c20f3d262036f6a

Contents?: true

Size: 483 Bytes

Versions: 3

Compression:

Stored size: 483 Bytes

Contents

require 'test_helper'
require 'rails/generators'
require 'generators/translation_generator'

class GeneratorsTest < Rails::Generators::TestCase
  tests TranslationGenerator
  destination File.expand_path('../tmp', File.dirname(__FILE__))

  teardown do
    FileUtils.rm_rf self.destination_root
  end

  test 'files generation' do
    run_generator %w(model)
    assert_file 'app/models/model_translation.rb'
    assert_migration 'db/migrate/create_model_translations.rb'
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
translatable_records-1.1.7 test/generators_test.rb
translatable_records-1.1.6 test/generators_test.rb
translatable_records-1.1.4 test/generators_test.rb