Skip to content

Commit

Permalink
the voyage continues...
Browse files Browse the repository at this point in the history
  • Loading branch information
glennj committed Dec 19, 2024
1 parent c6dadc4 commit 1661c91
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/models/badges/larisa_latynina_badge_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Badge::LarisaLatyninaBadgeTest < ActiveSupport::TestCase

# One gold medal
week_1[:featured_tracks].each do |track_slug|
exercise = create(:practice_exercise, track: tracks[track_slug], slug: week_1[:slug])
exercise = create(:practice_exercise, track: tracks[track_slug.to_sym], slug: week_1[:slug])
create(:practice_solution, :published, user:, track: tracks[track_slug.to_sym], exercise:,
published_at: Time.utc(2024, SecureRandom.rand(1..12), SecureRandom.rand(1..28)))
end
Expand Down
2 changes: 1 addition & 1 deletion test/models/badges/paavo_nurmi_badge_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Badge::PaavoNurmiBadgeTest < ActiveSupport::TestCase

# One gold medal
week_1[:featured_tracks].each do |track_slug|
exercise = create(:practice_exercise, track: tracks[track_slug], slug: week_1[:slug])
exercise = create(:practice_exercise, track: tracks[track_slug.to_sym], slug: week_1[:slug])
create(:practice_solution, :published, user:, track: tracks[track_slug.to_sym], exercise:,
published_at: Time.utc(2024, SecureRandom.rand(1..12), SecureRandom.rand(1..28)))
end
Expand Down
5 changes: 4 additions & 1 deletion test/models/badges/participant_in_48_in_24_badge_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ class Badge::ParticipantIn48In24BadgeTest < ActiveSupport::TestCase

test "award_to?" do
badge = create :participant_in_48_in_24_badge
tracks = {}
leap = {}

%i[csharp tcl wren].each do |t|
tracks[t] = create(:track, slug: t.to_s)
leap[t] = create(:practice_exercise, track: tracks[t], slug: 'leap')
end
end
user = create :user

# No solutions
Expand Down
2 changes: 1 addition & 1 deletion test/models/badges/usain_bolt_badge_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Badge::UsainBoltBadgeTest < ActiveSupport::TestCase

# One gold medal
week_1[:featured_tracks].each do |track_slug|
exercise = create(:practice_exercise, track: tracks[track_slug], slug: week_1[:slug])
exercise = create(:practice_exercise, track: tracks[track_slug.to_sym], slug: week_1[:slug])
create(:practice_solution, :published, user:, track: tracks[track_slug.to_sym], exercise:,
published_at: Time.utc(2024, SecureRandom.rand(1..12), SecureRandom.rand(1..28)))
end
Expand Down

0 comments on commit 1661c91

Please sign in to comment.