Merge pull request #998 from ahorek/missing_contstant

fix uninitialized constant Redmine::IntegrationTest NameError
This commit is contained in:
Karel Picman 2019-04-23 07:47:22 +02:00 committed by GitHub
commit 7d1a7c25b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View File

@ -23,7 +23,7 @@ module RedmineDmsf
module Test
class IntegrationTest < Redmine::IntegrationTest
def self.fixtures(*table_names)
dir = File.join( File.dirname(__FILE__), '../../../test/fixtures')
dir = File.join( File.dirname(__FILE__), '/fixtures')
table_names.each do |x|
ActiveRecord::FixtureSet.create_fixtures(dir, x) if File.exist?("#{dir}/#{x}.yml")
end

View File

@ -28,7 +28,7 @@ module RedmineDmsf
# Ultimately it allows for better integration without blowing redmine fixtures up,
# and allowing us to suppliment redmine fixtures if we need to.
def self.fixtures(*table_names)
dir = File.join( File.dirname(__FILE__), '../../../test/fixtures')
dir = File.join( File.dirname(__FILE__), '/fixtures')
table_names.each do |x|
ActiveRecord::FixtureSet.create_fixtures(dir, x) if File.exist?("#{dir}/#{x}.yml")
end

View File

@ -21,4 +21,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# Load the normal Rails helper
require File.expand_path('../../../../test/test_helper', __FILE__)
require File.expand_path('../../../../test/test_helper', __FILE__)
require_relative 'test_case'
require_relative 'integration_test'
require_relative 'unit_test'

View File

@ -28,7 +28,7 @@ module RedmineDmsf
# Ultimately it allows for better integration without blowing redmine fixtures up,
# and allowing us to suppliment redmine fixtures if we need to.
def self.fixtures(*table_names)
dir = File.join( File.dirname(__FILE__), '../../../test/fixtures')
dir = File.join( File.dirname(__FILE__), '/fixtures')
table_names.each do |x|
ActiveRecord::FixtureSet.create_fixtures(dir, x) if File.exist?("#{dir}/#{x}.yml")
end