Sha256: e5ee8503071975aa392662a660183e69ef7dfdf7d5323953e5d12d9e3cc3b78a

Contents?: true

Size: 663 Bytes

Versions: 21

Compression:

Stored size: 663 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'
require 'fileutils'
require 'generators/devise_token_auth/install_views_generator'

module DeviseTokenAuth
  class InstallViewsGeneratorTest < Rails::Generators::TestCase
    tests InstallViewsGenerator
    destination Rails.root.join('tmp/generators')

    describe 'default values, clean install' do
      setup :prepare_destination

      before do
        run_generator
      end

      test 'files are copied' do
        assert_file 'app/views/devise/mailer/reset_password_instructions.html.erb'
        assert_file 'app/views/devise/mailer/confirmation_instructions.html.erb'
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 6 rubygems

Version Path
devise_token_auth-1.2.5 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-1.2.4 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-1.2.2 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-1.2.1 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-1.2.0 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-1.1.5 test/lib/generators/devise_token_auth/install_views_generator_test.rb
sidecar_token_auth-1.0.1 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-1.1.4 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth_multitenancy-1.1.3.2 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth_multitenancy-1.1.3.1 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth_multitenancy-1.1.3.alpha1 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise-tokens-1.0.4 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-1.1.3 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-1.1.2 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-1.1.1 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-1.1.0 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth_fork_dfabarbosa-1.0.0 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth_skycocker_fork-1.0.0 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-1.0.0 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-1.0.0.rc2 test/lib/generators/devise_token_auth/install_views_generator_test.rb