Skip to content

Commit

Permalink
Change MiniTest namespace to latest
Browse files Browse the repository at this point in the history
MiniTest namespace which runs test cases changed to Minitest name.
As we are using older version test cases where failing to execute.
Fixed the namespaces and refactored some code.
  • Loading branch information
sudeeptarlekar committed May 8, 2024
1 parent 35174c2 commit cf59bed
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/rim/command_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def check_arguments
def create_module_info(remote_url, local_path, target_revision, ignores, subdir)
ModuleInfo.new(
remote_url,
get_relative_path(local_path),
FileHelper.get_relative_path(local_path),
target_revision,
ignores,
remote_url ? get_remote_branch_format(remote_url) : nil,
Expand Down
2 changes: 1 addition & 1 deletion lib/rim/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def self.logger=(logger)

def self.open(execute_dir, options = {})
log = @logger || Logger.new($stdout)
self.new(log, execute_dir, options)
new(log, execute_dir, options)
end

def self.next_invocation_id
Expand Down
4 changes: 0 additions & 4 deletions lib/rim/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ def remote_path(remote_url)
gsub(/\.\.[\\\/]/,'')
end

def get_relative_path(path)
FileHelper.get_relative_path(path, @ws_root)
end

def get_absolute_remote_url(remote_url)
if remote_url.start_with?("file:")
remote_url = remote_url.gsub(/^file:(\/\/)?/, "")
Expand Down
2 changes: 1 addition & 1 deletion test/dirty_check_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
require 'rim/rim_info'
require 'rim/dirty_check'

class DirtyCheckTest < MiniTest::Test
class DirtyCheckTest < Minitest::Test

include FileUtils
include TestHelper
Expand Down
2 changes: 1 addition & 1 deletion test/git_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
require 'test_helper'
require 'rim/git'

class GitTest < MiniTest::Test
class GitTest < Minitest::Test

include FileUtils
include TestHelper
Expand Down
2 changes: 1 addition & 1 deletion test/rim_info_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
require 'test_helper'
require 'rim/rim_info'

class RimInfoTest < MiniTest::Test
class RimInfoTest < Minitest::Test

include FileUtils
include TestHelper
Expand Down
2 changes: 1 addition & 1 deletion test/status_builder_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
require 'rim/dirty_check'
require 'rim/status_builder'

class StatusBuilderTest < MiniTest::Test
class StatusBuilderTest < Minitest::Test

include FileUtils
include TestHelper
Expand Down

0 comments on commit cf59bed

Please sign in to comment.