spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' spec/ruby/library/abbrev/**/*.rb
This commit is contained in:
parent
b4ee5266f1
commit
f4670b46c4
@ -1,13 +1,15 @@
|
||||
require_relative '../../spec_helper'
|
||||
require 'abbrev'
|
||||
|
||||
#test both Abbrev.abbrev and Array#abbrev in
|
||||
#the same manner, as they're more or less aliases
|
||||
#of one another
|
||||
ruby_version_is ""..."3.4" do
|
||||
require 'abbrev'
|
||||
|
||||
[["Abbrev.abbrev", -> a { Abbrev.abbrev(a)}],
|
||||
#test both Abbrev.abbrev and Array#abbrev in
|
||||
#the same manner, as they're more or less aliases
|
||||
#of one another
|
||||
|
||||
[["Abbrev.abbrev", -> a { Abbrev.abbrev(a)}],
|
||||
["Array#abbrev", -> a { a.abbrev}]
|
||||
].each do |(name, func)|
|
||||
].each do |(name, func)|
|
||||
|
||||
describe name do
|
||||
it "returns a hash of all unambiguous abbreviations of the array of strings passed in" do
|
||||
@ -28,4 +30,5 @@ require 'abbrev'
|
||||
func.call([]).should == {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user