uninitialized constant Redmine::IntegrationTest NameError

This commit is contained in:
pavel 2019-04-18 20:22:16 +02:00
parent d8212273aa
commit 8c430bec6a
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