Merge pull request #998 from ahorek/missing_contstant
fix uninitialized constant Redmine::IntegrationTest NameError
This commit is contained in:
commit
7d1a7c25b6
@ -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
|
||||
@ -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
|
||||
@ -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'
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user