Skip to content

Commit

Permalink
Added RubySpec for invalid range given as second parameter in String#…
Browse files Browse the repository at this point in the history
…delete!
  • Loading branch information
antekpiechnik committed May 19, 2012
1 parent 0aa720f commit 68272ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/ruby/core/string/delete_spec.rb
Expand Up @@ -64,6 +64,7 @@
it "raises if the given ranges are invalid" do
lambda { "hello".delete("h-e") }.should raise_error(ArgumentError)
lambda { "hello".delete("^h-e") }.should raise_error(ArgumentError)
lambda { "hello".delete("abc", "h-e") }.should raise_error(ArgumentError)
end
end

Expand Down

0 comments on commit 68272ab

Please sign in to comment.