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.
- data/.gitignore +4 -2
- data/Appraisals +11 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +12 -10
- data/Gemfile.lock +101 -83
- data/README.md +23 -2
- data/Rakefile +9 -4
- data/VERSION +1 -1
- data/app/mailers/clearance_mailer.rb +5 -5
- data/app/views/clearance_mailer/change_password.html.erb +1 -3
- data/clearance.gemspec +1 -1
- data/features/engine/visitor_resets_password.feature +7 -4
- data/features/engine/visitor_signs_in.feature +10 -12
- data/features/engine/visitor_signs_out.feature +2 -4
- data/features/integration.feature +13 -14
- data/features/step_definitions/configuration_steps.rb +6 -1
- data/features/step_definitions/engine/clearance_steps.rb +8 -17
- data/features/step_definitions/web_steps.rb +82 -90
- data/features/support/appraisal.rb +18 -0
- data/features/support/aruba.rb +3 -0
- data/features/support/clearance.rb +16 -0
- data/features/support/env.rb +40 -29
- data/features/support/selectors.rb +39 -0
- data/gemfiles/3.0.9.gemfile +18 -0
- data/gemfiles/3.0.9.gemfile.lock +176 -0
- data/gemfiles/3.1.0.rc4.gemfile +22 -0
- data/gemfiles/3.1.0.rc4.gemfile.lock +212 -0
- data/lib/clearance.rb +0 -1
- data/lib/clearance/test_matchers.rb +60 -0
- data/lib/clearance/user.rb +16 -4
- data/lib/generators/clearance/install/templates/README +6 -6
- data/spec/controllers/passwords_controller_spec.rb +4 -4
- data/spec/factories.rb +5 -5
- data/spec/spec_helper.rb +3 -47
- data/spec/support/clearance.rb +12 -0
- metadata +19 -8
- data/.bundle/config +0 -2
- data/lib/clearance/shoulda_macros.rb +0 -73
- data/spec/support/authorization.rb +0 -18
- 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
|