spec: fix content_migrations_spec rails 3 stability
Change-Id: Idfdde185ead6c615867582ad45aa44b7aa9c87cc Reviewed-on: https://gerrit.instructure.com/36630 Tested-by: Jenkins <jenkins@instructure.com> QA-Review: Shawn Meredith <shawn@instructure.com> Reviewed-by: Bryan Madsen <bryan@instructure.com> Product-Review: James Williams <jamesw@instructure.com>
This commit is contained in:
parent
e690395a9c
commit
ffbff81c33
|
@ -28,7 +28,6 @@ end
|
|||
def submit
|
||||
@course.reload
|
||||
count = @course.content_migrations.count
|
||||
|
||||
driver.execute_script("$('#migrationConverterContainer').submit()")
|
||||
keep_trying_until do
|
||||
@course.content_migrations.count.should == count + 1
|
||||
|
@ -39,6 +38,8 @@ end
|
|||
def run_migration(cm=nil)
|
||||
cm ||= @course.content_migrations.last
|
||||
cm.reload
|
||||
cm.skip_job_progress = false
|
||||
cm.reset_job_progress
|
||||
worker_class = Canvas::Migration::Worker.const_get(Canvas::Plugin.find(cm.migration_type).settings['worker'])
|
||||
worker_class.new(cm.id).perform
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue