Sha256: a578e716fb8049ed0887f2e32a9d783619c56711ff2e5a877e5f42c2371c5072

Contents?: true

Size: 632 Bytes

Versions: 55

Compression:

Stored size: 632 Bytes

Contents

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

55 entries across 55 versions & 4 rubygems

Version Path
devise_token_auth-0.1.43 test/lib/generators/devise_token_auth/install_views_generator_test.rb
digix_devise_token_auth-0.1.44 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.43.beta1 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.42 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.41 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.40 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.39 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.38 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.37 test/lib/generators/devise_token_auth/install_views_generator_test.rb
xing_backend_token_auth-0.1.32 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.37.beta4 test/lib/generators/devise_token_auth/install_views_generator_test.rb
cm-devise_token_auth-0.1.30.1 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.37.beta3 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.37.beta2 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.37.beta1 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.36 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.35 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.34 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.33 test/lib/generators/devise_token_auth/install_views_generator_test.rb
devise_token_auth-0.1.32 test/lib/generators/devise_token_auth/install_views_generator_test.rb