summaryrefslogtreecommitdiff
path: root/spec/ruby/optional/capi/regexp_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/optional/capi/regexp_spec.rb')
-rw-r--r--spec/ruby/optional/capi/regexp_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/optional/capi/regexp_spec.rb b/spec/ruby/optional/capi/regexp_spec.rb
index af366e17a2..f233b5e3b3 100644
--- a/spec/ruby/optional/capi/regexp_spec.rb
+++ b/spec/ruby/optional/capi/regexp_spec.rb
@@ -77,7 +77,7 @@ describe "C-API Regexp function" do
end
it "returns MatchData when used with rb_reg_match" do
- @p.rb_reg_match_backref_get(/a/, 'ab')[0].should == 'a'
+ @p.rb_reg_match_backref_get(/a/, 'ab')[0].should == 'a'
end
end
@@ -104,13 +104,13 @@ describe "C-API Regexp function" do
end
Thread.pass while thr.status and !running
- $~.should be_nil
+ $~.should == nil
thr.join
end
end
- describe "rb_memicmp" do
+ describe "rb_memcicmp" do
it "returns 0 for identical strings" do
@p.rb_memcicmp('Hello', 'Hello').should == 0
end