OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Chore: Access the controller instance with `controller`
Aaron Contreras08e10c08d64c
diff --git a/spec/controllers/account_controller_spec.rb b/spec/controllers/account_controller_spec.rbindex 9dd8b3e40f3..aece550f4d8 100644--- a/spec/controllers/account_controller_spec.rb+++ b/spec/controllers/account_controller_spec.rb@@ -316,7 +316,7 @@ RSpec.describe AccountController,shared_let(:admin) { create(:admin) }it 'calls reset_session' do- expect(@controller).to receive(:reset_session).once+ expect(controller).to receive(:reset_session).oncelogin_as adminget :logout@@ -418,7 +418,7 @@ RSpec.describe AccountController,endit 'does not login the user' do- expect(@controller.send(:current_user).anonymous?).to be_truthy+ expect(controller.send(:current_user).anonymous?).to be_truthyendend