Carlos Antonio da Silva
567fabbbc6
Disable forcing whitelist attributes from protected attributes
...
This was the previous functionality since we didn't set anything in the
application configuration. Now when using protected attributes gem, it
sets whitelist to true, forcing us to always declare the accessible
attributes, and this is not the case for the Admin model.
2013-02-25 22:12:06 -03:00
Carlos Antonio da Silva
d77a956276
Remove AR deprecated finder warnings
2013-02-25 22:12:06 -03:00
Carlos Antonio da Silva
3c885e043d
Fix changed error messages from confirmation validation
2013-02-25 22:12:06 -03:00
Carlos Antonio da Silva
9ae013ae3c
Updating test app running rake rails:update, tests running with failures
2013-02-25 22:12:06 -03:00
Carlos Antonio da Silva
f8792c8cf0
Update to Rails 3-2-stable and fix failing tests
2013-02-25 22:06:10 -03:00
Lucas Mazza
198bfff2de
Merge pull request #2300 from fphilipe/scoped-serialization
...
Make use of warden's scoped serialization
2013-02-25 15:32:43 -08:00
Philipe Fatio
c22d755cf4
Make use of warden's scoped serialization
2013-02-25 07:38:42 +01:00
Greg Gates
72cfaad618
Add #skip_confirmation_notification to Confirmable
2013-02-22 12:43:01 -05:00
Vasiliy Ermolovich
395a69b4ef
allow_unconfirmed_access_for set to nil means unconfirmed access for unlimited time
...
closes #2275
2013-02-13 21:17:38 +03:00
Vasiliy Ermolovich
f822f92321
use scoped path to shared views if scope is present
...
closes #2253
2013-02-09 02:35:06 +03:00
Drew Ulmer
c9c1e13743
Add test for Issue #2190
...
Seems to be passing for me.
2013-01-31 10:05:53 -06:00
José Valim
25296d8c6f
Add tests for sign out with redirect, related to #2249
2013-01-30 08:28:51 -07:00
Carlos Antonio da Silva
83ad67bd51
Fix inheriting mailer templates from Devise::Mailer
...
Previously inheriting from Devise::Mailer would not render default views
from devise when the inheriting mailer didn't have the view. Now it'll
correctly pick the default one from Devise::Mailer.
2013-01-29 00:08:26 -02:00
Carlos Antonio da Silva
72be1f1289
Match against string value, no need to create regexps
2013-01-28 23:59:15 -02:00
Carlos Antonio da Silva
0285565322
Actually fix this test by forcing to_s on the id
2013-01-28 21:40:11 -02:00
Carlos Antonio da Silva
acc3adb2c1
Use #next instead of calculating id + 1
...
The id attribute is not Integer in Mongo, so it fails with something like:
NoMethodError: undefined method `+' for "5106fc06ee6da1ee44000002":Moped::BSON::ObjectId'`
With #next, it will work with both Integer and String ids, for both AR
and Mongo, returning a different id to test for filtered conditions.
2013-01-28 20:46:21 -02:00
Carlos Antonio da Silva
af37800c1d
Change match routes to get / post
...
match without a verb is deprecated in Rails master.
2013-01-28 20:23:13 -02:00
Carlos Antonio da Silva
86eecc6606
Change "ActionController::IntegrationTest" to "ActionDispatch::IntegrationTest"
2013-01-28 19:58:21 -02:00
Rafael Mendonça França
bfa65dde70
Use the Ruby 1.8 hash syntax.
...
Yes we still support Ruby 1.8 😢
2013-01-28 13:21:44 -02:00
José Valim
5190f52857
Require string conversion for all values
2013-01-26 11:42:42 -07:00
Carlos Antonio da Silva
0061f113db
Fix indent [ci skip]
2013-01-20 21:49:45 -02:00
Vasiliy Ermolovich
d3f8bd6cae
add key option to rememberable_options
...
closes #2218
2013-01-20 23:16:25 +03:00
Vasiliy Ermolovich
9913fde749
use click_button for canceling account in integration specs
2013-01-12 14:12:05 +03:00
José Valim
33fb89340a
Revert "update_with_password doesn't change encrypted password when it is invalid"
...
This reverts commit 10235f9d72 .
2013-01-11 19:12:53 +01:00
Drew Ulmer
c768366240
Add failing tests for Issue #2204
...
For a point release upgrade, Devise should not throw an exception when trying
to downcase or strip globally configured keys. This would be a breaking
change in functionality and this test demonstrates the issue.
2013-01-09 11:41:20 -06:00
Alan Larkin
84b8188db9
Added failing integration test for XHR invocation of SessionsController#destroy with */*' in the Accept' header.
2013-01-06 03:49:59 +00:00
José Valim
30ab6f923d
Release 2.2.0.rc
2012-12-13 09:20:46 +01:00
José Valim
839e8fc8ac
Show if there is an e-mail waiting for confirmation, closes #2060
2012-12-13 09:13:33 +01:00
José Valim
4c83743263
unconfirmed_email now uses the proper e-mail on salutation, related to #2060
2012-12-13 09:02:59 +01:00
José Valim
e1fde192f2
Update CHANGELOG
2012-12-13 08:43:43 +01:00
Carlos Antonio da Silva
ac3a25bf2e
Remove nothing raised assertion
...
Let the test raise if that is the case, no need for assert that nothing
was raised.
Hopefully fix the build ✨
2012-12-04 17:49:26 -02:00
Carlos Antonio da Silva
2261005ed5
Refactor a bit to avoid two model attributes lookup
...
Tidy up tests a bit.
2012-12-04 17:37:12 -02:00
Drew Ulmer
0c6f2adf14
Add failing test for #2129
2012-12-01 21:06:11 -06:00
Drew Ulmer
77ec1b08cd
Move test models into their own file so they can be used elsewhere
2012-12-01 21:06:03 -06:00
José Valim
3696cbf33e
Merge pull request #2148 from kukula/master
...
Fix default email_regexp config to not allow spaces
2012-11-21 02:58:30 -08:00
Gabe Martin-Dempesy
130d684198
Change failure key for missing database resource to :invalid_email
2012-11-19 15:49:21 -08:00
Anatoliy Kukul
f0f3e15c08
add test for Devise.email_regexp
2012-11-19 17:38:22 +02:00
Jared Morgan
f044916f94
Use correct current_password in RegistrationTest of invalid confirmation
...
In DatabaseAuthenticatable#update_with_password, password is now deleted if
the current_password is invalid. dm-validations will not check the
confirmation in that case, so this test was failing in dm-devise.
2012-11-15 12:21:11 -06: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
b1df686a2e
Merge pull request #2137 from nashby/indifferent
...
remove useless test
2012-11-08 11:25:08 -08:00
Vasiliy Ermolovich
ae426dcc1c
remove useless test
2012-11-08 22:22:03 +03:00
José Valim
1646684af9
Merge pull request #2134 from marcinb/master
...
unlock user after password re-set
2012-11-07 14:15:00 -08:00
Marcin Balinski
ac58c28617
Unlock user when re-setting password and unlock strategy is :email or :both
2012-11-07 10:45:46 +01:00
Vasiliy Ermolovich
10235f9d72
update_with_password doesn't change encrypted password when it is invalid
...
closes #2130
2012-11-06 21:05:17 +03:00
Vasiliy Ermolovich
61903b534a
don't delete the return to url from session if the requested format is not navigational
...
closes #2122
2012-11-04 23:42:38 +03:00
José Valim
06a2cff140
Merge pull request #2117 from nashby/fix-issue-2043
...
handle namespaced models in AR generator
2012-10-27 15:25:32 -07:00
Vasiliy Ermolovich
2f36d0dd32
handle namespaced models in AR generator
...
closes #2043
2012-10-28 00:59:33 +03:00
José Valim
8ee1591868
Merge pull request #2115 from latortuga/1994-paranoid-locking
...
Add failing test for Issue #1994
2012-10-26 02:22:49 -07:00
José Valim
18c377e0d7
Merge pull request #2112 from latortuga/patch-1
...
Make #set_flash_message respect i18n-set resource_name
2012-10-26 02:05:42 -07:00
Drew Ulmer
00e8841e93
Unit test for Lockable#unauthenticated_message not leaking account existence
...
This is another failing test for #1994 , a unit test for Lockable. Lockable's
#uanauthenticated_message should not return :locked if paranoid mode is on
and instead should return the generic :invalid response.
2012-10-25 16:51:02 -05:00