Commit 4647fe4d authored by Zac Wood's avatar Zac Wood

delete more excel stuff

parent fecce1c4
Pipeline #4825 passed with stage
in 2 minutes and 49 seconds
require_relative 'excel_loader'
# Deletes all records from the database.
Closure.delete_all
CourseSection.delete_all
Course.delete_all
Semester.delete_all
loader = ExcelLoader.new 'db/data/fall2018.xlsx'
loader.load_data
require 'test_helper'
load 'db/excel_loader.rb'
class ExcelLoaderTest < ActiveSupport::TestCase
# NUMBER_ADDED_BY_FIXTURES = 2
# test 'loads data correctly' do
# loader = ExcelLoader.new 'db/data/testdata.xlsx'
# loader.load_data
# assert(Semester.count > NUMBER_ADDED_BY_FIXTURES, 'No semester loaded')
# assert(Course.count > NUMBER_ADDED_BY_FIXTURES, 'No courses loaded')
# assert(CourseSection.count > NUMBER_ADDED_BY_FIXTURES, 'No sections loaded')
# end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment