Skip to content

Commit b8f14ad

Browse files
terceirosorah
authored andcommitted
RubyDebianDev::SUPPORTED_RUBY_VERSIONS: make sure default Ruby always comes first
1 parent 1d06fef commit b8f14ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

debian/tests/ruby-all-dev

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,11 @@ describe RubyDebianDev do
2020
ruby_upper_bound = RubyDebianDev.ruby_upper_bound
2121
ruby_upper_bound.must_match %r{^ruby \(<< .+\)}
2222
end
23+
24+
it 'provides list of supported interpreters with default first' do
25+
default = File.basename(File.readlink('/usr/bin/ruby'))
26+
default.must_equal RubyDebianDev::SUPPORTED_RUBY_VERSIONS.keys.first
27+
end
28+
2329
end
2430

0 commit comments

Comments
 (0)