eac_users_support 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +5 -5
  2. data/Rakefile +3 -1
  3. data/app/controllers/eac_users_support/admin/users_controller.rb +2 -0
  4. data/app/controllers/eac_users_support/application_controller.rb +2 -0
  5. data/app/controllers/eac_users_support/users_controller.rb +2 -0
  6. data/app/models/eac_users_support/user.rb +1 -0
  7. data/config/initializers/devise.rb +2 -0
  8. data/config/routes.rb +2 -0
  9. data/db/migrate/20160605013848_create_users.rb +2 -0
  10. data/db/migrate/20160605035833_add_devise_authenticable_to_users.rb +2 -0
  11. data/db/migrate/20171012182305_rename_users_to_eac_users_support_users.rb +1 -0
  12. data/db/migrate/20180222202443_add_devise_rememberable_to_eac_users_support_users.rb +1 -0
  13. data/lib/eac_users_support/engine.rb +1 -0
  14. data/lib/eac_users_support/patches/action_controller_test_case.rb +1 -0
  15. data/lib/eac_users_support/tasks/password_reset.rb +11 -6
  16. data/lib/eac_users_support/version.rb +1 -1
  17. data/lib/eac_users_support.rb +1 -0
  18. data/lib/tasks/eac_users_support.rake +13 -12
  19. data/test/dummy/Rakefile +3 -1
  20. data/test/dummy/app/controllers/application_controller.rb +2 -0
  21. data/test/dummy/app/helpers/application_helper.rb +2 -0
  22. data/test/dummy/bin/bundle +3 -1
  23. data/test/dummy/bin/rails +3 -1
  24. data/test/dummy/bin/rake +2 -0
  25. data/test/dummy/bin/setup +3 -1
  26. data/test/dummy/config/application.rb +2 -1
  27. data/test/dummy/config/boot.rb +4 -2
  28. data/test/dummy/config/environment.rb +3 -1
  29. data/test/dummy/config/environments/development.rb +2 -0
  30. data/test/dummy/config/environments/production.rb +2 -0
  31. data/test/dummy/config/environments/test.rb +2 -0
  32. data/test/dummy/config/initializers/assets.rb +2 -0
  33. data/test/dummy/config/initializers/backtrace_silencers.rb +2 -0
  34. data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
  35. data/test/dummy/config/initializers/filter_parameter_logging.rb +2 -0
  36. data/test/dummy/config/initializers/inflections.rb +2 -0
  37. data/test/dummy/config/initializers/mime_types.rb +2 -0
  38. data/test/dummy/config/initializers/session_store.rb +2 -0
  39. data/test/dummy/config/initializers/wrap_parameters.rb +2 -0
  40. data/test/dummy/config/routes.rb +2 -0
  41. data/test/dummy/config.ru +2 -0
  42. metadata +50 -40
  43. data/test/eac_users_support_test.rb +0 -7
  44. data/test/test_helper.rb +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 96331e1ba92a5a9ae79d1f84d630167293d3234b70b5e28b2739c1dc8b6d1123
4
- data.tar.gz: '018c5d8e203963cf3968a28fb349f78fda131552d749ed7e7c6e80db19230129'
2
+ SHA1:
3
+ metadata.gz: e97e05ca57500cd0cbd76a3376efd06f7581b070
4
+ data.tar.gz: 22c0f6332755f00443f563b82fac2edfc2ddf15a
5
5
  SHA512:
6
- metadata.gz: 7220bcb2dcaf49416a119bf094cb3f039a5d32f138c2512159a4ef857933efc3c65501a6f97eafc19a83200ae5922ee576eab924d83f47ba89384021f2898597
7
- data.tar.gz: cd5ff574e5f4089aeb84aeb8aaceec2785ab35230d1a993cec01216a2389d9b83e8754f4cdf5fb04962b0949e623fac89d131b94b64b78c7459ee8f3afe63914
6
+ metadata.gz: cbfb886b2c1bef9b4f0dafea2a68cfbcc26df023785e047228af7e1b4f28684834811434b25a70b3f01c98ef4471937ef04e3edac9ee86bef121e86047d66b4b
7
+ data.tar.gz: 066a6642fe634287dec384903795c27e9a35d35da9f3bb07f249678148d61ab1d89d856e5d14903656e7e2cd1845168ad9f9d0fe9d5d3f0e63a367c69af2d719
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
4
  require 'bundler/setup'
3
5
  rescue LoadError
@@ -14,7 +16,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
14
16
  rdoc.rdoc_files.include('lib/**/*.rb')
15
17
  end
16
18
 
17
- APP_RAKEFILE = File.expand_path('../test/dummy/Rakefile', __FILE__)
19
+ APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__)
18
20
  load 'rails/tasks/engine.rake'
19
21
 
20
22
  load 'rails/tasks/statistics.rake'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module EacUsersSupport
2
4
  module Admin
3
5
  class UsersController < ::EacUsersSupport::ApplicationController
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module EacUsersSupport
2
4
  class ApplicationController < ::ApplicationController
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module EacUsersSupport
2
4
  class UsersController < ::EacUsersSupport::ApplicationController
3
5
  before_action :authenticate_user!
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require_dependency 'eac_users_support'
3
4
 
4
5
  module EacUsersSupport
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'devise'
2
4
 
3
5
  # Use this hook to configure devise mailer, warden hooks and so forth.
data/config/routes.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  EacUsersSupport::Engine.routes.draw do
2
4
  namespace(:admin) do
3
5
  resources(:users) { as_routes }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class CreateUsers < ActiveRecord::Migration
2
4
  def change
3
5
  create_table :users do |t|
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class AddDeviseAuthenticableToUsers < ActiveRecord::Migration
2
4
  def change
3
5
  add_column :users, :encrypted_password, :string, null: false, default: ''
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  class RenameUsersToEacUsersSupportUsers < ActiveRecord::Migration
3
4
  def change
4
5
  rename_table :users, :eac_users_support_users
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  class AddDeviseRememberableToEacUsersSupportUsers < ActiveRecord::Migration
3
4
  def change
4
5
  add_column :eac_users_support_users, :remember_created_at, :datetime
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'devise'
3
4
 
4
5
  module EacUsersSupport
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module ActionController
3
4
  class TestCase
4
5
  include Devise::TestHelpers
@@ -1,26 +1,31 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module EacUsersSupport
2
4
  module Tasks
3
5
  class PasswordReset
4
- def initialize(email)
6
+ def initialize(email, administrator)
5
7
  @email = email
8
+ @administrator = administrator
6
9
  end
7
10
 
8
11
  def run
9
- u = User.find_by_email(@email)
12
+ u = User.find_by(email: @email)
10
13
  if u
11
14
  Rails.logger.info "Usuário encontrado com o email \"#{@email}\""
12
- u.update_attributes!(update_attributes)
15
+ u.update!(attributes_to_update)
13
16
  else
14
17
  Rails.logger.info "Usuário não encontrado com o email \"#{@email}\". Criando..."
15
- User.create!({ email: @email }.merge(update_attributes))
18
+ User.create!({ email: @email }.merge(attributes_to_update))
16
19
  end
17
20
  Rails.logger.info "Senha resetada para #{@email}"
18
21
  end
19
22
 
20
23
  private
21
24
 
22
- def update_attributes
23
- { password: @email, password_confirmation: @email }
25
+ def attributes_to_update
26
+ r = { password: @email, password_confirmation: @email }
27
+ r[:administrator] = true if @administrator
28
+ r
24
29
  end
25
30
  end
26
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacUsersSupport
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'active_scaffold'
3
4
  require 'eac_users_support/engine'
4
5
 
@@ -1,18 +1,19 @@
1
1
  # frozen_string_literal: true
2
- namespace :users do
3
- desc <<eos
4
- Reseta a senha do usuário e permite setá-lo como administrador.
5
2
 
6
- Exemplos:
3
+ namespace :eac_users_support do
4
+ desc <<~DESCRIPTION
5
+ Reseta a senha do usuário e permite setá-lo como administrador.
7
6
 
8
- # Reseta a senha do usuário "fulano@example.com" para "fulano@example.com".
9
- bin/rake password_reset[fulano@example.com,false]
7
+ Exemplos:
10
8
 
11
- # Reseta a senha do usuário "fulano@example.com" para "fulano@example.com"
12
- # e seta-o como administrador.
13
- bin/rake password_reset[fulano@example.com,true]
14
- eos
15
- task :password_reset, [:email] => :environment do |_t, args|
16
- ::EacUsersSupport::Tasks::PasswordReset.new(args.email).run
9
+ # Reseta a senha do usuário "fulano@example.com" para "fulano@example.com".
10
+ bin/rake eac_users_support:password_reset[fulano@example.com]
11
+
12
+ # Reseta a senha do usuário "fulano@example.com" para "fulano@example.com"
13
+ # e seta-o como administrador.
14
+ bin/rake eac_users_support:password_reset[fulano@example.com,1]
15
+ DESCRIPTION
16
+ task :password_reset, %i[email administrator] => :environment do |_t, args|
17
+ ::EacUsersSupport::Tasks::PasswordReset.new(args.email, args.administrator.present?).run
17
18
  end
18
19
  end
data/test/dummy/Rakefile CHANGED
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Add your own tasks in files placed in lib/tasks ending in .rake,
2
4
  # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
5
 
4
- require File.expand_path('../config/application', __FILE__)
6
+ require File.expand_path('config/application', __dir__)
5
7
 
6
8
  Rails.application.load_tasks
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class ApplicationController < ActionController::Base
2
4
  # Prevent CSRF attacks by raising an exception.
3
5
  # For APIs, you may want to use :null_session instead.
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ApplicationHelper
2
4
  end
@@ -1,3 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
2
+ # frozen_string_literal: true
3
+
4
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
3
5
  load Gem.bin_path('bundler', 'bundle')
data/test/dummy/bin/rails CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
2
+ # frozen_string_literal: true
3
+
4
+ APP_PATH = File.expand_path('../config/application', __dir__)
3
5
  require_relative '../config/boot'
4
6
  require 'rails/commands'
data/test/dummy/bin/rake CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
2
4
  require_relative '../config/boot'
3
5
  require 'rake'
4
6
  Rake.application.run
data/test/dummy/bin/setup CHANGED
@@ -1,8 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
2
4
  require 'pathname'
3
5
 
4
6
  # path to your application root.
5
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
7
+ APP_ROOT = Pathname.new File.expand_path('..', __dir__)
6
8
 
7
9
  Dir.chdir APP_ROOT do
8
10
  # This script is a starting point to setup your application.
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require File.expand_path('../boot', __FILE__)
2
+
3
+ require File.expand_path('boot', __dir__)
3
4
 
4
5
  require 'rails/all'
5
6
 
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
4
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
3
5
 
4
6
  require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
7
+ $LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
4
+ require File.expand_path('application', __dir__)
3
5
 
4
6
  # Initialize the Rails application.
5
7
  Rails.application.initialize!
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Rails.application.configure do
2
4
  # Settings specified here will take precedence over those in config/application.rb.
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Rails.application.configure do
2
4
  # Settings specified here will take precedence over those in config/application.rb.
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Rails.application.configure do
2
4
  # Settings specified here will take precedence over those in config/application.rb.
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  # Version of your assets, change this if you want to expire all your assets.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  # You can add backtrace silencers for libraries that you're using but don't wish to see in your
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  # Configure sensitive parameters which will be filtered from the log file.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  # Add new inflection rules using the following format. Inflections
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  # Add new mime types for use in respond_to blocks:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  # This file contains settings for ActionController::ParamsWrapper which
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Rails.application.routes.draw do
2
4
  mount EacUsersSupport::Engine => '/eac_users_support'
3
5
  end
data/test/dummy/config.ru CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # This file is used by Rack-based servers to start the application.
2
4
 
3
5
  require ::File.expand_path('../config/environment', __FILE__)
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_users_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-17 00:00:00.000000000 Z
11
+ date: 2018-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: active_scaffold
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.5
19
+ version: 3.4.33
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.5
26
+ version: 3.4.33
27
27
  - !ruby/object:Gem::Dependency
28
- name: active_scaffold
28
+ name: devise
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 3.4.33
33
+ version: 4.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 3.4.33
40
+ version: 4.1.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: devise
42
+ name: rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 4.1.0
47
+ version: 4.2.5
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 4.1.0
54
+ version: 4.2.5
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.8'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.8'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: sqlite3
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -133,8 +147,6 @@ files:
133
147
  - test/dummy/public/422.html
134
148
  - test/dummy/public/500.html
135
149
  - test/dummy/public/favicon.ico
136
- - test/eac_users_support_test.rb
137
- - test/test_helper.rb
138
150
  homepage:
139
151
  licenses:
140
152
  - MIT
@@ -155,45 +167,43 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
167
  version: '0'
156
168
  requirements: []
157
169
  rubyforge_project:
158
- rubygems_version: 2.7.7
170
+ rubygems_version: 2.6.14
159
171
  signing_key:
160
172
  specification_version: 4
161
173
  summary: Ready-to-use support for users registration, login, logout, etc, for Rails.
162
174
  test_files:
163
175
  - test/dummy/Rakefile
164
176
  - test/dummy/README.rdoc
165
- - test/dummy/bin/rails
166
- - test/dummy/bin/rake
167
- - test/dummy/bin/bundle
168
- - test/dummy/bin/setup
169
- - test/dummy/config/initializers/assets.rb
170
- - test/dummy/config/initializers/wrap_parameters.rb
171
- - test/dummy/config/initializers/session_store.rb
172
- - test/dummy/config/initializers/cookies_serializer.rb
173
- - test/dummy/config/initializers/inflections.rb
174
- - test/dummy/config/initializers/mime_types.rb
175
- - test/dummy/config/initializers/backtrace_silencers.rb
176
- - test/dummy/config/initializers/filter_parameter_logging.rb
177
+ - test/dummy/config.ru
177
178
  - test/dummy/config/boot.rb
178
- - test/dummy/config/locales/en.yml
179
- - test/dummy/config/secrets.yml
180
- - test/dummy/config/environment.rb
181
179
  - test/dummy/config/database.yml
182
- - test/dummy/config/routes.rb
180
+ - test/dummy/config/secrets.yml
181
+ - test/dummy/config/locales/en.yml
182
+ - test/dummy/config/application.rb
183
183
  - test/dummy/config/environments/development.rb
184
184
  - test/dummy/config/environments/test.rb
185
185
  - test/dummy/config/environments/production.rb
186
- - test/dummy/config/application.rb
187
- - test/dummy/app/assets/stylesheets/application.css
188
- - test/dummy/app/assets/javascripts/application.js
186
+ - test/dummy/config/environment.rb
187
+ - test/dummy/config/routes.rb
188
+ - test/dummy/config/initializers/assets.rb
189
+ - test/dummy/config/initializers/cookies_serializer.rb
190
+ - test/dummy/config/initializers/inflections.rb
191
+ - test/dummy/config/initializers/session_store.rb
192
+ - test/dummy/config/initializers/wrap_parameters.rb
193
+ - test/dummy/config/initializers/filter_parameter_logging.rb
194
+ - test/dummy/config/initializers/backtrace_silencers.rb
195
+ - test/dummy/config/initializers/mime_types.rb
196
+ - test/dummy/db/schema.rb
189
197
  - test/dummy/app/views/layouts/application.html.erb
190
- - test/dummy/app/helpers/application_helper.rb
191
198
  - test/dummy/app/controllers/application_controller.rb
192
- - test/dummy/db/schema.rb
193
- - test/dummy/public/favicon.ico
194
- - test/dummy/public/500.html
199
+ - test/dummy/app/helpers/application_helper.rb
200
+ - test/dummy/app/assets/stylesheets/application.css
201
+ - test/dummy/app/assets/javascripts/application.js
195
202
  - test/dummy/public/422.html
196
203
  - test/dummy/public/404.html
197
- - test/dummy/config.ru
198
- - test/test_helper.rb
199
- - test/eac_users_support_test.rb
204
+ - test/dummy/public/favicon.ico
205
+ - test/dummy/public/500.html
206
+ - test/dummy/bin/bundle
207
+ - test/dummy/bin/setup
208
+ - test/dummy/bin/rails
209
+ - test/dummy/bin/rake
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class EacUsersSupportTest < ActiveSupport::TestCase
4
- test 'truth' do
5
- assert_kind_of Module, EacUsersSupport
6
- end
7
- end
data/test/test_helper.rb DELETED
@@ -1,22 +0,0 @@
1
- # Configure Rails Environment
2
- ENV['RAILS_ENV'] = 'test'
3
-
4
- require File.expand_path('../../test/dummy/config/environment.rb', __FILE__)
5
- ActiveRecord::Migrator.migrations_paths = [
6
- File.expand_path('../../test/dummy/db/migrate', __FILE__)
7
- ]
8
- require 'rails/test_help'
9
-
10
- # Filter out Minitest backtrace while allowing backtrace from other libraries
11
- # to be shown.
12
- Minitest.backtrace_filter = Minitest::BacktraceFilter.new
13
-
14
- # Load support files
15
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
16
-
17
- # Load fixtures from the engine
18
- if ActiveSupport::TestCase.respond_to?(:fixture_path=)
19
- ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
20
- ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
21
- ActiveSupport::TestCase.fixtures :all
22
- end