mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@032ee74
This commit is contained in:
parent
f646d20aae
commit
5aaa75e7c1
263 changed files with 921 additions and 921 deletions
|
@ -9,7 +9,7 @@ describe "MatchData#string" do
|
|||
it "returns a frozen copy of the match string" do
|
||||
str = /(.)(.)(\d+)(\d)/.match("THX1138.").string
|
||||
str.should == "THX1138."
|
||||
str.frozen?.should == true
|
||||
str.should.frozen?
|
||||
end
|
||||
|
||||
it "returns the same frozen string for every call" do
|
||||
|
@ -20,6 +20,6 @@ describe "MatchData#string" do
|
|||
it "returns a frozen copy of the matched string for gsub(String)" do
|
||||
'he[[o'.gsub!('[', ']')
|
||||
$~.string.should == 'he[[o'
|
||||
$~.string.frozen?.should == true
|
||||
$~.string.should.frozen?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue