Skip to content

Commit

Permalink
[2280] Rename course_type_determiner
Browse files Browse the repository at this point in the history
To degree_type_determiner
  • Loading branch information
avinhurry committed Sep 11, 2024
1 parent 93952d9 commit 037cb73
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/controllers/find/search/visa_status_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def next_step_path
end

def degree_type_answer_determiner
@degree_type_answer_determiner ||= CourseTypeAnswerDeterminer.new(
@degree_type_answer_determiner ||= DegreeTypeAnswerDeterminer.new(
university_degree_status: form_params[:university_degree_status],
age_group: form_params[:age_group],
visa_status: form_params[:visa_status]
Expand Down
2 changes: 1 addition & 1 deletion app/services/course_search_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def initialize(
filter:,
sort: nil,
course_scope: Course,
degree_type_answer_determiner: Find::CourseTypeAnswerDeterminer
degree_type_answer_determiner: Find::DegreeTypeAnswerDeterminer
)
@filter = filter || {}
@course_scope = course_scope
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Find
class CourseTypeAnswerDeterminer
class DegreeTypeAnswerDeterminer
attr_reader :age_group, :visa_status, :university_degree_status

def initialize(age_group:, visa_status:, university_degree_status:)
Expand Down
2 changes: 1 addition & 1 deletion app/view_objects/find/result_filters/filters_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def qualification_params_nil?
end

def show_undergraduate_courses?
CourseTypeAnswerDeterminer.new(
DegreeTypeAnswerDeterminer.new(
age_group: params[:age_group],
university_degree_status: params[:university_degree_status],
visa_status: params[:visa_status]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'rails_helper'

RSpec.describe Find::CourseTypeAnswerDeterminer do
RSpec.describe Find::DegreeTypeAnswerDeterminer do
describe '#show_undergraduate_courses?' do
context 'when the age group is not further education, no degree, and no visa sponsorship required' do
let(:params) do
Expand Down

0 comments on commit 037cb73

Please sign in to comment.