James Herdman
b64f165154
Silence Warning Regarding Use of Splat
...
I was seeing the following in my console:
```
/home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/devise-3.2.4/app/controllers/devise_controller.rb:9: warning: `*' interpreted as argument prefix
/home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/devise-3.2.4/app/controllers/devise_controller.rb:10: warning: `*' interpreted as argument prefix
```
This change silences this warning.
2014-07-11 15:06:56 -04:00
Carlos Antonio da Silva
1d803dd23b
Get rid of extra module for group helpers
...
Just use the existing ClassMethods module which is properly extended
with AS::Concern.
2014-07-10 17:01:26 -03:00
Carlos Antonio da Silva
f1d57d7791
Use a different mapping name for testing the omniauth callback failure
...
This leaks into Devise mappings overriding the existing :admin one, so
depending on the test seed it fails like this:
$ TESTOPTS="--seed=9972" rake
==> Devise.orm = :active_record
Run options: --seed=9972
...
1) Failure:
MappingTest#test_allows_path_to_be_given [./test/mapping_test.rb:31]:
Expected: "admin_area"
Actual: "admin"
Using a different name should avoid any test randomization issues.
2014-07-10 08:58:21 -03:00
Carlos Antonio da Silva
da01235a20
Fix test that checks for proper configuration of omniauth callback
...
Previously the test was raising an ArgumentError by mistake:
ArgumentError: wrong number of arguments (0 for 1)
actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:328:in `eval_block'`
The #eval_block method expects a proc/lambda argument that can be
instance_exec'ed, not a real block. In the Rails implementation the block
is passed to #draw, which calls #eval_block internally passing the block
along, but as a Proc argument and not as a block.
Also the error we were raising from #devise_for was a RuntimeError,
changed to the expected ArgumentError. Adding an assertion on top of the
expected message should ensure we won't have this issue again.
This was introduced in 29da146c07 , related
to #2802 .
2014-07-10 08:53:18 -03:00
Carlos Antonio da Silva
57d7a75b65
Use Devise's swap mechanism in failure app test
...
Also refactor tests to remove the custom failure app class only used
once in favor of an inline class for the specific test, makes it easier
to follow what's going on.
2014-07-10 08:53:18 -03:00
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
Vasiliy Ermolovich
9938a5e933
add documentation about skip: :all option to devise_for method
2014-07-06 16:35:51 +03:00
Lucas Mazza
9a5783ade3
Update Rails dependency across all lockfiles
2014-07-03 11:50:46 -03:00
Lucas Mazza
50679e1d93
Update Rails version across all the Gemfiles
2014-06-26 20:17:16 -03:00
Lucas Mazza
b6af1675d5
Merge pull request #3082 from greysteil/update-travis
...
Update Travis config to test on ruby 2.1.2 instead of 2.1.1
2014-06-24 10:23:48 -03:00
Lucas Mazza
520dfe2eb4
Update the overall dependencies and test with mongoid 4.0.0 for now on.
2014-06-24 10:22:26 -03:00
Lucas Mazza
8df6980c9e
Update _prefixes override to work with Rails 4.2
2014-06-24 10:06:45 -03:00
José Valim
6f7cd1332b
Merge pull request #3083 from jjb/patch-1
...
changelog detail for expire_all_remember_me_on_sign_out
2014-06-21 10:21:38 +02:00
John Bachir
8c7f6bd2aa
changelog detail for expire_all_remember_me_on_sign_out
...
explain that it's the configurability and not the functionality which is new
2014-06-20 18:01:35 -04:00
Grey Baker
89629e68c9
Update Travis config to test on ruby 2.1.2 instead of 2.1.1
2014-06-20 14:31:15 +01:00
José Valim
f0738098f0
Merge pull request #3079 from Yenwod/add-setup-detail
...
Add migration setup detail to README
2014-06-19 21:21:17 +02:00
Chris Downey
9abee354f7
Add migration setup detail to README
2014-06-19 15:03:19 -04:00
José Valim
382492ce40
Merge pull request #3077 from ShepBook/minor-readme-grammar
...
Make minor changes to readme grammar.
2014-06-19 10:49:31 +02:00
Jared Koumentis
d0cb629f81
Make minor changes to readme grammar.
2014-06-19 00:31:37 -04:00
Rafael Mendonça França
a11f54151b
Merge pull request #3074 from adamniedzielski/remove-cancan-from-readme
...
Outdated reference to CanCan in README
2014-06-18 11:11:10 -03:00
Adam Niedzielski
a0b97f5b5d
Update README.md
...
Remove reference to CanCan - it is no longer maintained
2014-06-18 16:03:39 +02:00
José Valim
83c01142a7
Merge pull request #3072 from roryokane/patch-1
...
Fix grammar and capitalization errors in README
2014-06-16 20:55:49 +02:00
Rory O’Kane
47ba796c26
Fix grammar and capitalization errors in README
2014-06-16 13:43:55 -04: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
José Valim
301539378e
Merge pull request #3060 from thomasdarde/patch-1
...
Update README.md
2014-06-06 21:00:22 +02:00
Thomas Darde
cb48c9c408
Update README.md
...
Add more description on the way I18n.locale has to be set in case of multi-locale app.
2014-06-06 18:39:06 +02:00
Brian Underwood
74f4442319
User Model.to_adapter directly as suggested by @josevalim
2014-06-06 08:35:42 -07:00
José Valim
2bde395840
Update activatable.rb
2014-06-06 13:03:53 +02: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
Lucas Mazza
40068c4cba
Merge pull request #3048 from shanab/master
...
Update README.md
2014-05-29 10:13:10 -03:00
Ahmed Mostafa
37e05380d1
Update README.md
...
Fixed incorrect method definition.
2014-05-29 16:08:29 +03: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
Lucas Mazza
09db3c65ec
Merge pull request #3041 from brentkearney/master
...
Getting Started instructions: clarification on dynamic method names
2014-05-24 00:40:01 -03:00
Brent Kearney
82b60fce15
Changed MODEL to model, as per request.
2014-05-23 15:15:41 -06:00
Brent Kearney
0e14ac3aa7
Updated Getting Started instructions to help avoid confusion around alternate devise MODEL names
2014-05-23 12:26:19 -06:00
Kush Kella
dd56dc7da6
added test for update_tracked_fields method
2014-05-22 11:11:13 -07:00
José Valim
9818038a72
Merge pull request #3029 from randoum/master
...
lock_access! better failure message
2014-05-22 10:20:41 +02:00
José Valim
6a783c9ec7
Merge pull request #3023 from jphenow/omniauth-cant-cleanup-csrf
...
Omniauth can't cleanup CSRF
2014-05-22 10:17:48 +02:00
Kush Kella
451be888cb
added non-bang version of update_tracked_fields
2014-05-21 16:18:35 -07:00
Jimmy Chen
72f5eae391
Document that we can configure Devise test helpers in spec_helper.rb
...
Closes #3006 [ci skip]
2014-05-21 20:07:07 -03: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