Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
a
  • Loading branch information
gms-gs committed Nov 30, 2024
1 parent ed76631 commit fcfa052
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions app/forms/support/edit_course_form.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Support
class EditCourseForm
include ActiveModel::Model
Expand Down
8 changes: 2 additions & 6 deletions spec/forms/edit_course_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ module Support
subject.assign_attributes(attributes_with_invalid_date_format)
output = subject.start_date
expect(output).not_to be_instance_of(Date)
expect(output.day).to eq('222')
expect(output.month).to eq('90')
expect(output.year).to eq(Settings.current_recruitment_cycle_year)
expect(output).to be_nil
end
end

Expand All @@ -129,9 +127,7 @@ module Support
subject.assign_attributes(blank_attributes)
output = subject.start_date
expect(output).not_to be_instance_of(Date)
expect(output.day).to eq('')
expect(output.month).to eq('')
expect(output.year).to eq('')
expect(output).to be_nil
end
end
end
Expand Down

0 comments on commit fcfa052

Please sign in to comment.