Skip to content

Commit

Permalink
Suppression de l'année scolaire 2024 dans le seeder associé
Browse files Browse the repository at this point in the history
  • Loading branch information
tnicolas1 committed Jun 6, 2024
1 parent d5a4a5a commit 257ba90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/school_year_seeder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def self.seed
SchoolYear.delete_all

SchoolYear.create(start_year: 2023)
SchoolYear.create(start_year: 2024)
# SchoolYear.create(start_year: 2024)

logger.info "[seeds] done inserting #{SchoolYear.count} school years."
end
Expand Down
2 changes: 1 addition & 1 deletion spec/models/school_year_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

describe "#current" do
it "select the last year" do # NOTE: here the 2023 - 2024 are created through seeds
expect(described_class.current.start_year).to eq 2024
expect(described_class.current.start_year).to eq 2023
end
end
end

0 comments on commit 257ba90

Please sign in to comment.