Carlos Antonio da Silva
2e8aecdac2
Create an anonymous class to test the failure app
...
No need to have a named class inside the test.
2014-07-10 08:13:06 -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
Brian Underwood
65d7d1ba55
Change test to use acts_like? so that we can have DateTime fields
2014-05-28 22:17:07 -07:00
Giovanni Caniato
dfcb342a8f
group methods defined in the current scope
2014-05-28 19:30:03 +02:00
Lucas Mazza
88efa6545f
Swap the failure app during the test case properly.
2014-05-28 12:07:25 -03: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
José Valim
395b5c4237
Merge pull request #3011 from dwhenry/make-devise-more-engine-friendly
...
Make devise more engine friendly
2014-05-24 20:20:03 +09:00
Lucas Mazza
08d8591dfd
Merge pull request #3038 from kushkella/non-bang-method-trackable
...
added non-bang version of update_tracked_fields
2014-05-24 00:58:06 -03:00
Kush Kella
dd56dc7da6
added test for update_tracked_fields method
2014-05-22 11:11:13 -07:00
randoum
4ee2402cd7
lock_access! better failure message
2014-05-16 06:02:11 +08:00
randoum
d8ee3e49cb
lock_access! better failure message
2014-05-16 05:57:18 +08: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
Lucas Mazza
fa36464268
Silence the OmniAuth logger during tests.
2014-05-14 23:25:29 -03:00
David Henry
426560a4db
Attempt without adding engine to application
2014-05-08 00:46:19 +01:00
Carlos Antonio da Silva
6129215afe
Simplify test that verifies multiple warden blocks
2014-05-07 18:53:09 -03:00
Carlos Antonio da Silva
916e1d8da9
No need for instance vars on these tests
2014-05-07 18:50:50 -03:00
Adrian Pacała
53504f7e28
Generate inet columns for postgresql
2014-05-07 08:50:21 +02: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
David Henry
ceafc710ef
Start adding tests to the engine routing tests.
2014-05-06 00:56:58 +01:00
David Henry
2d3ca4dc31
get everything working with the engine included and devise routes declared within it.
2014-05-05 23:50:26 +01:00
David Henry
18da4b1eff
Stash as test have broken
2014-05-05 23:23:55 +01:00
David Henry
1e8e8516f0
Simplify access to router_name using the existing scope lookup.
2014-05-05 23:19:03 +01:00
Lucas Mazza
13a8ad81ee
Merge pull request #2997 from parallel588/master
...
fixed store location with bad URL
2014-04-28 11:26:56 -03:00
kento1218
d63b6b7b9d
Fix Devise::ConfirmationsController#after_confirmation_path_for
...
after_confirmation_path_for checks whether the user already signed in
by calling signed_in? after confirmation succeeded.
Since it was called without scope specification, the user treated as
signed in inappropriately when the user signed in as another resource
(such as 'admin').
2014-04-28 20:44:00 +09:00
Maxim Pechnikov
a841e6c4f0
fixed storing location with bad URL
2014-04-25 19:14:32 +04:00
Michael Crismali
f37b10ef87
Switched all instances of 'not blank?' to 'present?'
2014-04-17 20:34:28 -05:00
Ross Kaffenberger
5f32cd25fd
support multiple warden configuration blocks
...
Changes the behavior of `Devise.warden` such that calling it multiple
times with different blocks will result in a call to each block on
`Devise.configure_warden!` rather than "last block wins". This is
especially used for plugins that wish to extend warden functionality
without clobbering base app configuration or vice versa.
2014-04-15 17:20:21 -04:00
Lauro Caetano
571dead19b
Check if there is a signed in user before sign out.
...
Only execute the `SessionsController#destroy` if there is a signed in
user, otherwise it will raise
`ActionController::InvalidAuthenticityToken`.
Fixes #2934 .
2014-04-09 10:25:44 -03:00
Sadjow Leão
a2bd5631da
Use port option in default url options for ActionMailer
2014-04-04 19:01:12 -03:00
Lauro Caetano
f7fdde1ab0
Add the invalidate_all_sessions_on_logout configuration to invalidate
...
all the remember me tokens when the user signs out.
2014-04-04 16:17:26 -03:00
José Valim
947169e4f5
Merge pull request #2960 from kgiszczak/redirect-url-tweaks
...
Use full urls instead of just paths when redirecting in failure app.
2014-04-04 17:41:41 +02:00
Kamil Giszczak
9cada8d2d4
Use scope instead of constraints to define routes.
...
It works the same with rails 3 and rails 4.
2014-04-04 16:07:37 +02:00
Lucas Mazza
6027787930
Merge pull request #2954 from plataformatec/lm-last-request-at-json-serialization
...
Serialize the `last_request_at` entry as an Integer
2014-04-02 22:58:14 -03:00
Kamil Giszczak
a38f2f96b5
Use _url routes instead of _path
2014-04-02 15:42:41 +02:00
Karl Entwistle
de57ef83fb
Find a resource based off its encrypted reset_password_token
2014-03-31 14:58:52 +01:00
Lucas Mazza
da0c27393f
Serialize the last_request_at entry as an Integer
...
Pushing the `Time` object inside the session has inconsistencies
across different serializers and we should use a more primitive type
so we don't need any specific parsing logic for the JSON serializer.
2014-03-28 22:51:56 -03:00
Daniel Pehrson
90e55409e1
Upgrade stray legacy hash syntax to 1.9 syntax.
2014-03-21 15:24:25 -04: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
59cd0cc240
Merge pull request #2906 from p-originate/master
...
Grammar/content fixes for email confirmation language
2014-03-17 12:08:07 -03:00
Molly Trombley-McCann and Shatarupa Nandi
a79e0f6bca
Rename variable to views, change flag to -v
2014-03-06 13:41:11 -08:00
Molly Trombley-McCann
09ebe833b3
Add a flag to views generator allowing user to specify which view directories to generate
2014-03-04 15:05:16 -08:00
Greg Cobb and Molly Trombley-McCann
0d06ed6c79
WIP
2014-03-03 09:30:00 -08:00
Oleg Pudeyev
47845e44a2
Chase language changes in tests
2014-03-03 10:15:33 -05:00
Lucas Mazza
aea82d0b03
Update remaning 1.8 hash syntax.
2014-02-25 14:25:55 -03:00