Felipe Renan
45438fcfc4
Fix SQLite3 warning
...
Before setting this option, our test suite was giving the following warning:
```
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
boolean values and must have old data converted to 1 and 0 (its native boolean
serialization) before setting this flag to true. Conversion can be accomplished
by setting up a rake task which runs
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
for all models and all boolean columns, after which the flag must be set to
true by adding the following to your application.rb file:
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
(called from <top (required)> at $PATH/devise/test/rails_app/app/active_record/user.rb:5)
```
After configuring `represent_boolean_as_integer = true` as specified
above, we don't have this warning anymore.
More info:
https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SQLite3Adapter.html#method-c-represent_boolean_as_integer
2019-01-28 14:39:06 -02:00
Leonardo Tegon
c000b58c56
Add Rails 6 to CI ( #5009 )
2019-01-22 12:43:31 -02:00
kenji kobayashi
e3a00b27d1
Add an option to not automatically sign in a user after changing a password ( #4569 )
2018-12-28 11:29:58 -02:00
Wolfram Nikolas Müller
f220b992c3
add test for lazy loading hook
2018-03-29 15:32:46 -03:00
Leonardo Tegon
5664b19703
Ensure Devise isn't performing model validations
2018-03-14 15:21:07 -03:00
Justin Coyne
a45bbe1783
Test on Rails 5.2.0.rc1 ( #4711 )
2018-02-22 10:05:19 -03:00
Pat Allan
f39c6fd927
Add the frozen_string_literal pragma comment to all Ruby files. ( #4725 )
2017-12-21 15:36:29 -02:00
Ashley Foster
31801fc9a0
Fix missing validations on Signup ( #4674 )
...
* Fix missing validations on Signup
This commit fixes issue
https://github.com/plataformatec/devise/issues/4673
This removes `validate: false` from saving a record when `Trackable` is
in use.
* Add test case
* Add mongoid model
2017-11-28 12:58:41 -02:00
Dan Schultzer
be2e17841e
Separate Devise test methods from Devise
2017-04-29 10:24:22 -07:00
Rafael Mendonça França
0591d92f53
Move the version check to the lib folder
...
Closes #4514 .
Fixes #4513 .
2017-04-29 10:12:51 -07:00
Rafael Mendonça França
94c6d5f5cc
Remove deprecation on _changed? methods
2017-04-28 16:05:39 -07:00
Matthew Rudy Jacobs
7c4e8c8d17
Rails 5.1 requires ActionController::TestRequest to have a controller class
...
Pass it in as an anonymous class
2017-04-28 10:51:27 -05:00
Lucas Mazza
22784cb55a
Remove ActiveRecord::Migration inheritance deprecation warning.
2016-06-27 16:50:26 -03:00
Kris Handley
0c991af985
Fix Rails 5 env deprecation warning
...
Full warning ```DEPRECATION WARNING: env is deprecated and will be removed from Rails 5.1```
2016-06-18 14:20:08 +01:00
Shinya Kitamura
57980ba82a
Add public_file_server setting for Rails5
2016-06-01 14:44:35 +08:00
Ulisses Almeida
81869de9c5
Only set raise_in_transactional_callbacks for Rails 4.2
...
* Only set for active record orm.
* Only set for Rails versions that supports the config.
2016-05-02 23:22:51 -03:00
Ulisses Almeida
f6301c08f6
Add raise_in_transactional_callbacks to true
...
Using a rails app without this config generates a rails
warning, since it will be the new default. Let's udpate it.
2016-05-02 22:41:51 -03:00
Lucas Mazza
13285d7ef3
Remove a few Ruby syntax warnings from the test suite.
2016-05-02 10:47:05 -03:00
Ulisses Almeida
1ddca80cee
Set the new default of sign_out_via config
2016-05-01 12:44:40 -03:00
Ulisses Almeida
6e419ce821
Set the new default for reconfirmable config
2016-05-01 12:44:40 -03:00
Ulisses Almeida
48af3e8249
Fix Rails 5 build
...
With this [PR](https://github.com/rails/activemodel-serializers-xml/pull/8 )
of activemodel-serializers bundle will require it by default.
2016-04-15 16:57:35 -03:00
bogdanvlviv
0f11c0f6b3
fix method name for File
2016-04-12 09:03:54 +03:00
Paul Menzel
f2d7b8f740
Spell verb *set up* with a space
...
The verb *set up* is spelled with a space [1].
```
$ git grep -l 'to setup' | xargs sed -i 's/to setup/to set up/g'
$ git grep -l '# Setup' | xargs sed -i 's/# Setup/# Set up/g'
$ git grep -l "test 'setup" | xargs sed -i "s/test 'setup/test 'set up/g"
```
Revert the change for *setup block yields self*.
Change the rest manually.
[1] http://www.merriam-webster.com/dictionary/set%20up
2016-02-02 19:09:19 +01:00
Thomas Walpole
2024fca4df
Rails 5 compatability. Remove rails < 4.1 and Ruby < 2.1
2015-12-11 09:47:30 -08:00
Ed Saunders
d98e98fe77
Add a test for when a recoverable resource has a non-AR email field
2015-12-08 16:01:39 +00:00
David Rodríguez
4064641967
Remove obsolete expire_auth_token_on_timeout
...
This should have been removed in dff7891b97
when token authentication (and the reset_authentication_token! method)
were removed.
2015-07-11 09:01:22 -03:00
Carlos Antonio da Silva
868d3d82a0
Do a final pass removing spaces around square brackets
...
Keep plataformatec guidelines and review tools happy.
Related to #3480 .
2015-03-13 13:59:19 -03:00
Carlos Antonio da Silva
d1d5996b6b
Remove deprecated methods related to token authentication
...
These methods have no effect since Devise 3.2.0, released in Nov 2013.
2015-03-13 13:54:32 -03:00
George Millo
a6a1524146
adding test for RegistrationsController#new yielding the resource
2015-02-14 15:37:21 +01:00
Michael Borohovski
f0992e4a96
Added an option to not automatically sign in a user after a password reset. This is useful for cases where additional strategies might be needed (such as two-factor authentication, e.g.), or generally if it is considered a security risk to automatically log in a user after a password is reset.
2015-02-13 02:29:11 -08:00
Kevin Bullaughey
1118762ce7
apply the same change to production.rb that was put into test.rb to get rid of the depracation warning related to the config.serve_static_assets -> config.serve_static_files in Rails 4.2.0
2015-01-16 15:29:08 -05:00
Juanito Fatas
b2a66732cf
Suppress test.rb config warning for Rails 4.2.
2014-12-31 11:35:18 +08:00
Rodrigo Rosenfeld Rosas
ae00e0bb20
Remove old references to removed remember_across_browsers option
2014-11-21 17:33:58 -02:00
Logan Leger
c7cc91cb65
Update password length validation to 72 characters max
...
BCrypt has a limit of 72 characters for the password. Anything beyond 72
characters is truncated. This commit updates the validation to limit
passwords to less than 72 characters, keeping within the limitation.
2014-11-18 23:10:01 -06:00
Lucas Mazza
8482e485d1
Merge branch 'master' into lm-rails-4-2
2014-09-18 17:46:14 -03:00
José Valim
432a172533
Set null: false explicitly in timestamps
2014-09-18 19:50:58 +02:00
Lucas Mazza
a6f3f8cb4a
Split up mailer classes into their own files.
2014-09-08 18:01:39 -03:00
Lucas Mazza
6207e03070
Merge pull request #3135 from alexsoble/master
...
UX feature: heads-up for new users about minimum password length
2014-08-11 17:34:41 -03:00
alexsoble
fe015f5a54
Revert "Update routes to match 'sign up'/'log in', incorporate feedback from @carlosantoniodasilva"
...
This reverts commit de2a24b3d3 .
2014-08-10 12:13:35 -04:00
alexsoble
de2a24b3d3
Update routes to match 'sign up'/'log in', incorporate feedback from @carlosantoniodasilva
2014-08-07 11:33:03 -04:00
alexsoble
039b75ba83
Incorporated edits from @lucasmazza, wrote integration tests for password reminder feature
2014-08-06 11:04:46 -04:00
Lucas Mazza
eb9db7ba3a
Coerce time objects serialized as Strings before doing the timeoutable comparisons.
...
The comparison only fails on Ruby 1.9.3, when we need to parse it properly back
to a Time instance.
Related to #2930 .
2014-08-05 14:58:27 -03:00
José Valim
eeb6060d9d
Merge pull request #3054 from cheerfulstoic/devise-neo4j
...
Changes to support devise-neo4j
2014-06-06 21:08:28 +02:00
Brian Underwood
74f4442319
User Model.to_adapter directly as suggested by @josevalim
2014-06-06 08:35:42 -07:00
José Valim
8b3b3d7955
Merge pull request #3042 from dropletzz/group_helpers
...
Helper methods for groups of mappings
2014-06-06 12:58:44 +02:00
Brian Underwood
2174e4675e
Use User and Admin orm_adapter adapter in tests to support other ORMs (neo4j, in this case)
2014-06-04 21:59:30 -07:00
Giovanni Caniato
cb1d6c4684
moved helpers definition from routes to controllers
2014-05-27 11:58:55 +02:00
Giovanni Caniato
8df6a2f38b
added groups with their helper methods
2014-05-26 16:45:18 +02:00
David Henry
6a628724ea
Ensure I don't leave public methods around that break the test suit..
2014-05-15 19:42:08 +01:00
David Henry
c5c360cdd9
Add classes for mongoid based tests
2014-05-15 18:59:51 +01:00