Skip to content

Commit

Permalink
remove unused vufind test
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Nov 23, 2024
1 parent 6c3e0f4 commit 89dfddb
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 18 deletions.
6 changes: 0 additions & 6 deletions test/integration/vufind_sirsi_api_test.rb

This file was deleted.

61 changes: 49 additions & 12 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,63 @@
# frozen_string_literal: true
# frozen_string_literal: false

# some of the comments are in UTF-8
ENV['RAILS_ENV'] = 'test'
require File.expand_path('../config/environment', __dir__)
require 'rails/test_help'
require 'factory_girl_rails'
require 'minitest/unit'
require 'database_cleaner/active_record'

# Configure shoulda-matchers to use Minitest
require 'shoulda/matchers'

class ActiveSupport::TestCase
include FactoryGirl::Syntax::Methods
include ActionMailer::TestHelper
include ActiveJob::TestHelper
DatabaseCleaner.url_allowlist = [
%r{.*test.*}
]
DatabaseCleaner.strategy = :truncation

include ActionDispatch::TestProcess

Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.test_framework :minitest
with.library :rails
end
end

module ActiveSupport
class TestCase
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
#
# Note: You'll currently still have to declare fixtures explicitly in integration tests
# -- they do not yet inherit this setting

# fixtures :all

# Add more helper methods to be used by all tests here...
include FactoryGirl::Syntax::Methods
include Warden::Test::Helpers
include ActionMailer::TestHelper
include ActiveJob::TestHelper

Warden.test_mode!

setup do
DatabaseCleaner.start
end

teardown do
DatabaseCleaner.clean
end
end
end

class ActionDispatch::IntegrationTest
include Devise::Test::IntegrationHelpers
include ActionDispatch::TestProcess
include ActionMailer::TestHelper

include Warden::Test::Helpers
Devise::Test::IntegrationHelpers
Warden.test_mode!

def log_user_in(user)
Expand All @@ -29,9 +72,3 @@ def get_instance_var(what)

def assert_template(which); end
end
Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.test_framework :minitest
with.library :rails
end
end

0 comments on commit 89dfddb

Please sign in to comment.