diff options
Diffstat (limited to 'spec/ruby/optional/capi/string_spec.rb')
-rw-r--r-- | spec/ruby/optional/capi/string_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/ruby/optional/capi/string_spec.rb b/spec/ruby/optional/capi/string_spec.rb index 0cf22e0287..9291630ace 100644 --- a/spec/ruby/optional/capi/string_spec.rb +++ b/spec/ruby/optional/capi/string_spec.rb @@ -611,7 +611,9 @@ describe "C-API String function" do filename = fixture(__FILE__, "read.txt") str = "" capacities = @s.RSTRING_PTR_read(str, filename) - capacities.should == [30, 53] + capacities[0].should >= 30 + capacities[1].should >= 53 + capacities[0].should < capacities[1] str.should == "fixture file contents to test read() with RSTRING_PTR" end end |