diff --git a/Gemfile b/Gemfile index 772cfb5..654098b 100644 --- a/Gemfile +++ b/Gemfile @@ -10,7 +10,7 @@ gemspec # engine_cart: 1.1.0 # engine_cart stanza: 0.10.0 # the below comes from engine_cart, a gem used to test this Rails engine gem in the context of a Rails app. -file = File.expand_path('Gemfile', ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path('.internal_test_gem', File.dirname(__FILE__))) +file = File.expand_path('Gemfile', ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path('.internal_test_app', File.dirname(__FILE__))) if File.exist?(file) begin eval_gemfile file diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 8ce804a..d661538 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -4,7 +4,7 @@ require 'simplecov' SimpleCov.start do - add_filter '/.internal_test_gem/' + add_filter '/.internal_test_app/' add_filter '/spec/' end diff --git a/tasks/warclight.rake b/tasks/warclight.rake index 0fed1c1..5f9e13d 100644 --- a/tasks/warclight.rake +++ b/tasks/warclight.rake @@ -53,8 +53,8 @@ namespace :warclight do task :seed do puts 'Seeding index with data from spec/fixtures/warcs/...' # rubocop:disable Metrics/LineLength - system('curl -o ".internal_test_gem/tmp/warc-indexer.jar" "http://alpha.library.yorku.ca/warc-indexer.jar"') - system('java -Djava.io.tmpdir=.internal_test_gem/tmp -jar .internal_test_gem/tmp/warc-indexer.jar -c .internal_test_gem/solr/warclight_warc-indexer.conf -i "York University Libraries" -n "Test Collection" -u "12345" -s http://localhost:8983/solr/blacklight-core spec/fixtures/warcs/*.gz') + system('curl -o ".internal_test_app/tmp/warc-indexer.jar" "http://alpha.library.yorku.ca/warc-indexer.jar"') + system('java -Djava.io.tmpdir=.internal_test_app/tmp -jar .internal_test_app/tmp/warc-indexer.jar -c .internal_test_app/solr/warclight_warc-indexer.conf -i "York University Libraries" -n "Test Collection" -u "12345" -s http://localhost:8983/solr/blacklight-core spec/fixtures/warcs/*.gz') system('curl "http://localhost:8983/solr/blacklight-core/update?commit=true&openSearcher=true"') end end