Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge AdviceController and tests refactor #99

Closed
wants to merge 25 commits into from

Conversation

bdevine2
Copy link

Refactored AdviceController methods.
Added gem rails-controller-testing to get access to render_template
Modified ApplicationController to inherit from Base instead of Api. Should have a separate class for api controller to inherit from in the future. Also added some user based methods to ApplicationController
Added missing classes needed for testing

  • Criterion
  • AuthorizationHelper
  • QuestionAdvice (with a migration)
  • ReviewQuestionnaire
  • QuestionnaireHelper

Added routes to AdviceController

Added some factories for rspec testing and a rails helper to allow session users to be created for tests.

bdevine2 and others added 25 commits April 4, 2024 04:29
Initial tests running and starting point
Added tests for edit_advice method
refactoring invalid_advice and updating tests

Pulled this branch being merged and everything tests well.
Final updates for edit_advice method
@bdevine2 bdevine2 closed this Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants