summaryrefslogtreecommitdiff
path: root/spec/unit/monkey_patches/string_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/monkey_patches/string_spec.rb')
-rw-r--r--spec/unit/monkey_patches/string_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/monkey_patches/string_spec.rb b/spec/unit/monkey_patches/string_spec.rb
index 8c6710b38e..74e3753229 100644
--- a/spec/unit/monkey_patches/string_spec.rb
+++ b/spec/unit/monkey_patches/string_spec.rb
@@ -27,8 +27,8 @@ describe String do
ch = num.chr
ch.force_encoding('ASCII-8BIT') if ch.respond_to? :force_encoding
- ch.ord.should be_a_kind_of(Fixnum)
- ch.ord.should == num
+ expect(ch.ord).to be_a_kind_of(Fixnum)
+ expect(ch.ord).to eq(num)
end
end