Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Change MiniTest namespace to latest #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Change MiniTest namespace to latest
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.
sudeeptarlekar committed May 8, 2024
commit cf59bed3ba871350e00d1a4f09c59fdba857e171
2 changes: 1 addition & 1 deletion lib/rim/command_helper.rb
Original file line number Diff line number Diff line change
@@ -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,
2 changes: 1 addition & 1 deletion lib/rim/git.rb
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions lib/rim/processor.rb
Original file line number Diff line number Diff line change
@@ -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:(\/\/)?/, "")
2 changes: 1 addition & 1 deletion test/dirty_check_test.rb
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
require 'rim/rim_info'
require 'rim/dirty_check'

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

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

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

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

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

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

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

include FileUtils
include TestHelper