Skip to content

Commit

Permalink
Merge pull request #222 from sul-dlss/rails_root
Browse files Browse the repository at this point in the history
Remove references to PRE_ASSEMBLY_ROOT, it's just Rails.root now
  • Loading branch information
jmartin-sul committed Sep 7, 2018
2 parents 5a1d5e8 + a2a5d7f commit 8b5ebeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions spec/lib/pre_assembly/bundle_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
end

describe '#import_csv' do
let(:manifest) do
described_class.import_csv("#{PRE_ASSEMBLY_ROOT}/spec/test_data/bundle_input_a/manifest.csv")
end
let(:manifest) { described_class.import_csv(Rails.root.join('spec/test_data/bundle_input_a/manifest.csv')) }

it "loads a CSV as a hash with indifferent access" do
expect(manifest).to be_an(Array)
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/pre_assembly/smpl_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RSpec.describe PreAssembly::Smpl do
let(:bundle_dir) { File.join(PRE_ASSEMBLY_ROOT, 'spec/test_data/bundle_input_e') }
let(:bundle_dir) { Rails.root.join('spec/test_data/bundle_input_e') }

describe 'SMPL content metadata generation and techMetadata generation - no thumb declaration' do
let(:dobj1) { setup_dobj('aa111aa1111', smpl_manifest) }
Expand Down

0 comments on commit 8b5ebeb

Please sign in to comment.