Permalink
Browse files

Move rb_str_length spec to correct position

  • Loading branch information...
1 parent acaddd2 commit 39199478f029f7a156e40679eec1e8091fdfcd83 @dbussink dbussink committed Sep 28, 2012
Showing with 9 additions and 12 deletions.
  1. +9 −12 spec/ruby/optional/capi/string_spec.rb
@@ -565,24 +565,21 @@ def to_str
@s.rb_str_len("dewdrops").should == 8
end
end
+ end
+end
- ruby_version_is "1.9" do
-
- describe "rb_str_length" do
- it "returns the string's length" do
- @s.rb_str_length("dewdrops").should == 8
- end
+ruby_version_is "1.9" do
- it "counts characters in multi byte encodings" do
- @s.rb_str_length("düwdrops").should == 8
- end
- end
+ describe "rb_str_length" do
+ it "returns the string's length" do
+ @s.rb_str_length("dewdrops").should == 8
end
+ it "counts characters in multi byte encodings" do
+ @s.rb_str_length("düwdrops").should == 8
+ end
end
-end
-ruby_version_is "1.9" do
describe :rb_external_str_new, :shared => true do
it "returns a String in the default external encoding" do
Encoding.default_external = "UTF-8"

0 comments on commit 3919947

Please sign in to comment.