diff options
| author | hituzi no sippo <dev@hituzi-no-sippo.me> | 2025-12-11 19:16:17 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-12-16 03:56:21 +0000 |
| commit | 3b50f4ba41ececd01dcf2e35c4071495f250d609 (patch) | |
| tree | 48caaa0d83206c5f886400073e78c60b5fe9aa06 /spec | |
| parent | 3b3ab338516c9af009300761382f01a6beff4dd0 (diff) | |
[ruby/rubygems] Support single quotes in mise format ruby version
https://github.com/ruby/rubygems/commit/a7d7ab39dd
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/bundler/bundler/ruby_dsl_spec.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/spec/bundler/bundler/ruby_dsl_spec.rb b/spec/bundler/bundler/ruby_dsl_spec.rb index 0d02542fb5..4ef0296695 100644 --- a/spec/bundler/bundler/ruby_dsl_spec.rb +++ b/spec/bundler/bundler/ruby_dsl_spec.rb @@ -178,11 +178,21 @@ RSpec.describe Bundler::RubyDsl do let(:file_content) do <<~TOML [tools] - ruby = "#{version}" + ruby = #{quote}#{version}#{quote} TOML end - it_behaves_like "it stores the ruby version" + context "with double quotes" do + let(:quote) { '"' } + + it_behaves_like "it stores the ruby version" + end + + context "with single quotes" do + let(:quote) { "'" } + + it_behaves_like "it stores the ruby version" + end end context "with a .tool-versions file format" do |
