clearance 0.11.1 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of clearance might be problematic. Click here for more details.

Files changed (40) hide show
  1. data/.gitignore +4 -2
  2. data/Appraisals +11 -0
  3. data/CHANGELOG.md +7 -0
  4. data/Gemfile +12 -10
  5. data/Gemfile.lock +101 -83
  6. data/README.md +23 -2
  7. data/Rakefile +9 -4
  8. data/VERSION +1 -1
  9. data/app/mailers/clearance_mailer.rb +5 -5
  10. data/app/views/clearance_mailer/change_password.html.erb +1 -3
  11. data/clearance.gemspec +1 -1
  12. data/features/engine/visitor_resets_password.feature +7 -4
  13. data/features/engine/visitor_signs_in.feature +10 -12
  14. data/features/engine/visitor_signs_out.feature +2 -4
  15. data/features/integration.feature +13 -14
  16. data/features/step_definitions/configuration_steps.rb +6 -1
  17. data/features/step_definitions/engine/clearance_steps.rb +8 -17
  18. data/features/step_definitions/web_steps.rb +82 -90
  19. data/features/support/appraisal.rb +18 -0
  20. data/features/support/aruba.rb +3 -0
  21. data/features/support/clearance.rb +16 -0
  22. data/features/support/env.rb +40 -29
  23. data/features/support/selectors.rb +39 -0
  24. data/gemfiles/3.0.9.gemfile +18 -0
  25. data/gemfiles/3.0.9.gemfile.lock +176 -0
  26. data/gemfiles/3.1.0.rc4.gemfile +22 -0
  27. data/gemfiles/3.1.0.rc4.gemfile.lock +212 -0
  28. data/lib/clearance.rb +0 -1
  29. data/lib/clearance/test_matchers.rb +60 -0
  30. data/lib/clearance/user.rb +16 -4
  31. data/lib/generators/clearance/install/templates/README +6 -6
  32. data/spec/controllers/passwords_controller_spec.rb +4 -4
  33. data/spec/factories.rb +5 -5
  34. data/spec/spec_helper.rb +3 -47
  35. data/spec/support/clearance.rb +12 -0
  36. metadata +19 -8
  37. data/.bundle/config +0 -2
  38. data/lib/clearance/shoulda_macros.rb +0 -73
  39. data/spec/support/authorization.rb +0 -18
  40. data/spec/support/clearance_redirects.rb +0 -21
@@ -1,21 +0,0 @@
1
- module ClearanceRedirectMatchers
2
- def redirect_to_url_after_create
3
- redirect_to(@controller.send(:url_after_create))
4
- end
5
-
6
- def redirect_to_url_after_update
7
- redirect_to(@controller.send(:url_after_update))
8
- end
9
-
10
- def redirect_to_url_after_destroy
11
- redirect_to(@controller.send(:url_after_destroy))
12
- end
13
-
14
- def redirect_to_url_already_confirmed
15
- redirect_to(@controller.send(:url_already_confirmed))
16
- end
17
- end
18
-
19
- RSpec.configure do |config|
20
- config.include ClearanceRedirectMatchers
21
- end