diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-05-01 18:13:33 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-05-01 18:13:33 +0300 |
commit | d49768296ce596bbbbdf8412c362d9999ce822a4 (patch) | |
tree | 31a1e1250bdb8c2db3b7a7400a5a7c8f8141bd01 /spec/controllers/application_controller_spec.rb | |
parent | 0a556523cfee57e54e8e1227b818085c8d8c4ecc (diff) |
Auto-correct `RSpec/DescribedClass` violations
Diffstat (limited to 'spec/controllers/application_controller_spec.rb')
-rw-r--r-- | spec/controllers/application_controller_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/controllers/application_controller_spec.rb b/spec/controllers/application_controller_spec.rb index 760f33b09c1..1bf0533ca24 100644 --- a/spec/controllers/application_controller_spec.rb +++ b/spec/controllers/application_controller_spec.rb @@ -4,7 +4,7 @@ describe ApplicationController do let(:user) { create(:user) } describe '#check_password_expiration' do - let(:controller) { ApplicationController.new } + let(:controller) { described_class.new } it 'redirects if the user is over their password expiry' do user.password_expires_at = Time.new(2002) @@ -34,7 +34,7 @@ describe ApplicationController do describe "#authenticate_user_from_token!" do describe "authenticating a user from a private token" do - controller(ApplicationController) do + controller(described_class) do def index render text: "authenticated" end @@ -66,7 +66,7 @@ describe ApplicationController do end describe "authenticating a user from a personal access token" do - controller(ApplicationController) do + controller(described_class) do def index render text: 'authenticated' end @@ -115,7 +115,7 @@ describe ApplicationController do end context 'two-factor authentication' do - let(:controller) { ApplicationController.new } + let(:controller) { described_class.new } describe '#check_two_factor_requirement' do subject { controller.send :check_two_factor_requirement } |