Sha256: a62a8f91d0659aed53dadf5fdbf5b3c3cc3a9abe3b4c06c820594a251e4ec51b

Contents?: true

Size: 1.56 KB

Versions: 1

Compression:

Stored size: 1.56 KB

Contents

# frozen_string_literal: true

require 'test_helper'
require 'rails/generators/test_case'
require 'generators/devise_security/install_generator'

class TestInstallGenerator < Rails::Generators::TestCase
  tests DeviseSecurity::Generators::InstallGenerator
  destination File.expand_path('../tmp', __FILE__)
  setup :prepare_destination

  test 'Assert all files are properly created' do
    run_generator
    assert_file 'config/initializers/devise_security.rb'
    assert_file 'config/locales/devise.security_extension.by.yml'
    assert_file 'config/locales/devise.security_extension.cs.yml'
    assert_file 'config/locales/devise.security_extension.de.yml'
    assert_file 'config/locales/devise.security_extension.en.yml'
    assert_file 'config/locales/devise.security_extension.es.yml'
    assert_file 'config/locales/devise.security_extension.fa.yml'
    assert_file 'config/locales/devise.security_extension.fr.yml'
    assert_file 'config/locales/devise.security_extension.hi.yml'
    assert_file 'config/locales/devise.security_extension.it.yml'
    assert_file 'config/locales/devise.security_extension.ja.yml'
    assert_file 'config/locales/devise.security_extension.nl.yml'
    assert_file 'config/locales/devise.security_extension.pt.yml'
    assert_file 'config/locales/devise.security_extension.ru.yml'
    assert_file 'config/locales/devise.security_extension.tr.yml'
    assert_file 'config/locales/devise.security_extension.uk.yml'
    assert_file 'config/locales/devise.security_extension.zh_CN.yml'
    assert_file 'config/locales/devise.security_extension.zh_TW.yml'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devise-security-0.16.0 test/test_install_generator.rb