Files
devise/lib/devise
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
..
2014-06-06 13:03:53 +02:00
2014-02-25 22:12:55 +05:30
2013-12-05 09:03:32 +01:00
2013-09-02 19:15:47 -03:00
2014-02-25 22:12:55 +05:30
2014-02-25 22:12:55 +05:30
2014-02-25 22:12:55 +05:30
2013-08-06 12:14:51 +02:00
2014-03-17 11:16:38 -03:00