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:
James Williams 2014-06-19 06:52:14 -06:00
parent e690395a9c
commit ffbff81c33
1 changed files with 2 additions and 1 deletions

View File

@ -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