Skip to content

Commit

Permalink
working on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Sep 30, 2024
1 parent d0933db commit 3071474
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/functional/my_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__

class MyControllerTest < RedmineSudo::ControllerTest
fixtures :users, :email_addresses, :user_preferences, :roles, :projects, :members, :member_roles,
Expand Down
2 changes: 1 addition & 1 deletion test/functional/users_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__

class UsersControllerTest < RedmineSudo::ControllerTest
fixtures :users, :email_addresses, :groups_users, :roles, :user_preferences,
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
end
end

require_relative '../../../test/test_helper'
require File.expand_path "#{File.dirname __FILE__}/../../../test/test_helper"

module RedmineSudo
module TestHelper
Expand Down
4 changes: 2 additions & 2 deletions test/unit/i18n_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__

class I18nTest < RedmineSudo::TestCase
include Redmine::I18n
Expand All @@ -19,7 +19,7 @@ def test_valid_languages
end

def test_locales_validness
lang_files_count = Rails.root.glob('plugins/additionals/config/locales/*.yml').size
lang_files_count = Rails.root.glob('plugins/redmine_sudo/config/locales/*.yml').size

assert_equal 9, lang_files_count
valid_languages.each do |lang|
Expand Down
2 changes: 1 addition & 1 deletion test/unit/user_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__

class UserTest < RedmineSudo::TestCase
fixtures :users, :groups_users, :email_addresses, :user_preferences,
Expand Down

0 comments on commit 3071474

Please sign in to comment.