Add scraper for 3B-i student/#courses ratio

This commit is contained in:
rebuilt 2023-05-22 11:32:01 -07:00
parent bea9be2d76
commit ce76c979a4
4 changed files with 11113 additions and 10 deletions

View file

@ -17,9 +17,10 @@ RSpec.describe Dese::ThreeBOne do
let(:i1_filepath) { Rails.root.join('tmp', 'spec', 'dese', '3B_1_masscore.csv') }
let(:i2_filepath) { Rails.root.join('tmp', 'spec', 'dese', '3B_1_advcoursecomprate.csv') }
let(:i3_filepath) { Rails.root.join('tmp', 'spec', 'dese', '3B_1_ap.csv') }
let(:i4_filepath) { Rails.root.join('tmp', 'spec', 'dese', '3B_1_student_courses_ratio.csv') }
let(:filepaths) do
[i1_filepath, i2_filepath, i3_filepath]
[i1_filepath, i2_filepath, i3_filepath, i4_filepath]
end
before do
FileUtils.mkdir_p 'tmp/spec/dese'
@ -29,6 +30,13 @@ RSpec.describe Dese::ThreeBOne do
academic_years
end
context 'a-curv-i5' do
it 'creates a csv file with the scraped data' do
Dese::ThreeBOne.new(filepaths:).run_all
expect(i4_filepath).to exist
end
end
xcontext 'Creating a new Scraper' do
it 'creates a csv file with the scraped data' do
Dese::ThreeBOne.new(filepaths:).run_all