-
Notifications
You must be signed in to change notification settings - Fork 479
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
More realistic workshop factories #30296
Conversation
03e2ab4
to
148f1e7
Compare
Codecov Report
@@ Coverage Diff @@
## staging #30296 +/- ##
========================================
Coverage 76.77% 76.77%
========================================
Files 678 678
Lines 27688 27688
========================================
Hits 21258 21258
Misses 6430 6430 Continue to review full report at Codecov.
|
af4d7c5
to
6709b54
Compare
@@ -648,7 +655,10 @@ class ApplicationsControllerTest < ::ActionController::TestCase | |||
time = Date.new(2017, 3, 15) | |||
|
|||
Timecop.freeze(time) do | |||
workshop = create :workshop, :local_summer_workshop, num_sessions: 3, sessions_from: Date.new(2017, 1, 1), processed_location: {city: 'Orchard Park', state: 'NY'}.to_json | |||
workshop = create :summer_workshop, | |||
num_sessions: 3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there is a reason that this needs to have 3 sessions - it looks like it could be a standard 5-day summer workshop
@@ -780,7 +790,10 @@ class ApplicationsControllerTest < ::ActionController::TestCase | |||
time = Date.new(2017, 3, 15) | |||
|
|||
Timecop.freeze(time) do | |||
workshop = create :workshop, :local_summer_workshop, num_sessions: 3, sessions_from: Date.new(2017, 1, 1), processed_location: {city: 'Orchard Park', state: 'NY'}.to_json | |||
workshop = create :summer_workshop, | |||
num_sessions: 3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here - could just go with the default 5 sessions
Continuing work started in #30281 to clean up our workshop factories and make them more realistic - specifically reflecting the workshop types that we're actively supporting.
This particular change adds support for CSD and CSP summer workshops, and removes the old summer workshop traits.