Permalink
Browse files

Fix a String#strip! spec, and clear an apparently stale spec which no…

… longer exists.
  • Loading branch information...
1 parent 4ac3a7b commit 69f4953e731b86d595b69e1a4b62e25ed8c9a49d @BanzaiMan BanzaiMan committed Jun 8, 2010
Showing with 1 addition and 6 deletions.
  1. +0 −2 spec/tags/1.9/ruby/core/string/strip_tags.txt
  2. +1 −4 src/org/jruby/RubyString.java
@@ -1,2 +0,0 @@
-fails:String#strip! raises a RuntimeError if self is frozen
-fails:String#strip! raises a RuntimeError on a frozen instance that would not be modified
@@ -5484,10 +5484,7 @@ public IRubyObject strip19(ThreadContext context) {
@JRubyMethod(name = "strip!", compat = CompatVersion.RUBY1_9)
public IRubyObject strip_bang19(ThreadContext context) {
Ruby runtime = context.getRuntime();
- if (value.getRealSize() == 0) {
- modifyCheck();
- return runtime.getNil();
- }
+ modifyCheck();
Encoding enc = value.getEncoding();
int s = value.getBegin();

0 comments on commit 69f4953

Please sign in to comment.