Implementation of gsub is not complete vs Ruby 1.8X
---------------------------------------------------
Key: JRUBY-4929
URL: http://jira.codehaus.org/browse/JRUBY-4929
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.5
Reporter: RD
describe 'string gsub (mis)behaviour' do
it 'should manage replacements with gsub correctly' do
"foo noo boo".gsub("oo", "ar").should == "far nar bar"
end
it 'takes a block' do
"foo noo boo".gsub("oo").each do |oo| "ar" end.should == "far nar bar"
end
it 'should not raise an arguement error' do
lambda {
"foo noo boo".gsub("oo").each do |oo| "ar" end
}.should_not raise(ArgumentError)
end
end
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email