Dan Schultzer
be2e17841e
Separate Devise test methods from Devise
2017-04-29 10:24:22 -07: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
Lucas Mazza
13285d7ef3
Remove a few Ruby syntax warnings from the test suite.
2016-05-02 10:47:05 -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
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
George Millo
a6a1524146
adding test for RegistrationsController#new yielding the resource
2015-02-14 15:37:21 +01:00
Lucas Mazza
a6f3f8cb4a
Split up mailer classes into their own files.
2014-09-08 18:01:39 -03: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
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
David Henry
426560a4db
Attempt without adding engine to application
2014-05-08 00:46:19 +01:00
David Henry
bec913fc07
Clean up the code.
2014-05-06 23:31:59 +01:00
David Henry
b5da4e82d0
Add full tests around confirmation when using devise_for with router_name
2014-05-06 23:07:24 +01:00
Daniel Pehrson
ce3ead6b5f
Ensure registration controller block yields happen on failure in addition to success and closes #2936 .
...
Now with 100% more unit tests.
2014-03-21 10:29:14 -04:00
Lucas Mazza
aea82d0b03
Update remaning 1.8 hash syntax.
2014-02-25 14:25:55 -03:00
Anshul Sharma
dc1b399a8b
Updated ruby 1.9 hash syntax
2014-02-25 22:12:55 +05:30
Erik Michaels-Ober
3f03ec02ad
Cleanup trailing whitespace
2013-12-05 09:03:32 +01:00
José Valim
dff7891b97
Get rid of token authentication
2013-09-02 19:15:47 -03:00
Vasiliy Ermolovich
b7079c7cf2
redirect user to the referrer if latest request was not GET after timeout
...
closes #2421
2013-05-19 17:11:34 +03:00
José Valim
8a93c34080
Clean up Devise parameter sanitizer
2013-04-13 23:21:46 -07:00
Carlos Antonio da Silva
f75352a373
Merge branch 'master' into rails4
2013-04-13 11:37:48 -03:00
Tomas Varneckas
1acd3d1790
Fix devise sender bug with custom devise mailers.
...
The devise sender detection must take into account that the default
sender set in the custom devise mailer can be a proc.
2013-04-12 16:48:48 +03:00
Drew Ulmer
b151d2cfe2
Remove MassAssignment security from Mongoid test shim
2013-04-01 09:00:36 -05:00
Carlos Antonio da Silva
e79ebe8aec
Fix last mongoid tests since it does not have the order method
2013-02-25 22:13:36 -03:00
Carlos Antonio da Silva
aca7e5d162
Run tests with mongoid
2013-02-25 22:12:20 -03:00
José Valim
30ab6f923d
Release 2.2.0.rc
2012-12-13 09:20:46 +01:00
Durran Jordan
d821275588
Fix spec failures for Mongoid 3.
...
This has no actual changes to Devise itself, just fixes the failing
tests when running against Mongoid 3 instead of Mongoid 2.
Mocha has been locked at 0.10.0 since 0.12.0 raises an error when trying
to set an expectation on a frozen object.
Tests were updated to work with both AR and Mongoid, some cases the XML
serialization was slightly different but both were outputting correct
and valid XML, and the id/_id field mismatch is now handled.
An active field was missing from the test models for Mongoid, and the
invalid :null => true options in field were removed.
2012-11-10 20:02:58 +01:00
José Valim
9678b422ff
Merge pull request #1954 from mrchrisadams/d1bf31729d10fbb65f1b7ce158f3926aa946b3ad
...
Allow setting of default reply_to fields on mailer mails - #1936
2012-06-27 03:19:52 -07:00
Chris Adams
d1bf31729d
Address issue #1936
...
Update mailer to accept reply_to as a default param as well, as discussed in
https://github.com/plataformatec/devise/issues/1936#issuecomment-6583637
2012-06-26 23:11:35 +01:00
José Valim
4bc2ff997a
Timeout does not explode when reset_authentication_token! is accidentally defined by Active Model
2012-06-16 14:04:34 +02:00
Rodrigo Flores
39dc9a7ba6
Removed encryptable references on rails_app
2012-05-09 14:49:55 -03:00
Rodrigo Flores
65f08ea175
Removing signed_out path workaround
2012-02-16 14:53:11 -02:00
Jo Liss
27b745d04f
Use consistent number of hash signs
2011-12-28 17:26:57 +01:00
José Valim
d952dea32b
Remove the code that was dynamically adding columns to active record
2011-12-11 20:07:50 +01:00
José Valim
7693173ecd
Final tidy up on removing schema helpers.
2011-12-05 12:17:02 +01:00
José Valim
a0294cbae8
Improve fields.
2011-12-05 12:02:25 +01:00
Szymon Przybył
7665cbf21d
Allow to set default 'from' header of Devise mails in custom mailer class
2011-08-20 22:35:47 +02:00
Ches Martin
55af9f8a40
Fix failing Mongoid tests
...
- attr_accessible not set for test user model, making Serializable tests
inaccurate
- Mongoid does not `include_root_in_json` by default, so enable this for
consistency with AR tests
- Mark tests pending for Mongoid < 2.1 that fail there due to known bugs
- Add `:mongoid` key for i18n model labels
- Remove outdated shim of `update_attribute` that caused mass assignment
security to be applied (ugh, that took awhile to find)
2011-08-05 01:38:42 +07:00
José Valim
767a7a7c21
Ensure handle_unverified_request clean up any cached signed-in user
2011-06-29 20:18:10 -03:00
Samuel Cochran
e75354b3b0
Tests.
2011-06-23 10:44:46 +08:00
José Valim
43a3431c3e
Add a test to ensure user.remember_me = true followed by a sign in sends the cookie, closes #776
2011-02-24 22:24:21 +01:00
José Valim
c8c84c77c6
Respond to all formats if none is specified.
2010-12-29 16:01:11 +01:00
José Valim
27051cb2fe
responder formats should be inherited from ApplicationController
2010-12-25 11:04:39 +01:00