Skip to content

Commit 22dbe86

Browse files
committed
Remove duplicate test
1 parent f4fb30e commit 22dbe86

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

lib/language_pack/ruby_version.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,6 @@ def initialize(output = "")
1515
BOOTSTRAP_VERSION_NUMBER = "3.3.9".freeze
1616
DEFAULT_VERSION_NUMBER = "3.3.9".freeze
1717
DEFAULT_VERSION = "ruby-#{DEFAULT_VERSION_NUMBER}".freeze
18-
# standard:disable Lint/MixedRegexpCaptureTypes
19-
# Uses regex subroutine definitions with {0} suffix (match zero times to define without consuming)
20-
RUBY_VERSION_REGEX = %r{
21-
(?<ruby_version>\d+\.\d+\.\d+){0}
22-
(?<patchlevel>p-?\d+){0}
23-
(?<engine>\w+){0}
24-
(?<engine_version>.+){0}
25-
26-
ruby-\g<ruby_version>(-\g<patchlevel>)?(\.(?<pre>\S*))?(-\g<engine>-\g<engine_version>)?
27-
}x
28-
# standard:enable Lint/MixedRegexpCaptureTypes
2918

3019
# String formatted `<major>.<minor>.<patch>` for Ruby and JRuby
3120
attr_reader :ruby_version,

spec/unit/bash_functions_spec.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,6 @@
100100
EOM
101101
end
102102

103-
it "kv_string" do
104-
out = exec_with_bash_file(code: <<~EOM, file: bash_functions_file, strip_output: false)
105-
build_data::init "$(mktemp -d)"
106-
build_data::clear
107-
108-
build_data::kv_string "ruby_version" "3.3.0"
109-
build_data::print_bin_report_json
110-
EOM
111-
112-
expect(out).to eq(<<~EOM)
113-
{
114-
"ruby_version": "3.3.0"
115-
}
116-
EOM
117-
end
118-
119103
it "kv_raw" do
120104
out = exec_with_bash_file(code: <<~EOM, file: bash_functions_file, strip_output: false)
121105
build_data::init "$(mktemp -d)"

0 commit comments

Comments
 (0)