Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
schedules
Commits
4647fe4d
Commit
4647fe4d
authored
Sep 29, 2019
by
Zac Wood
Browse files
delete more excel stuff
parent
fecce1c4
Pipeline
#4825
passed with stage
in 2 minutes and 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
schedules/db/seeds-excel.rb
deleted
100644 → 0
View file @
fecce1c4
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
schedules/test/models/excel_loader_test.rb
deleted
100644 → 0
View file @
fecce1c4
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment