summaryrefslogtreecommitdiff
path: root/spec/unit/monkey_patches
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/monkey_patches')
-rw-r--r--spec/unit/monkey_patches/string_spec.rb4
-rw-r--r--spec/unit/monkey_patches/uri_spec.rb2
2 files changed, 3 insertions, 3 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
diff --git a/spec/unit/monkey_patches/uri_spec.rb b/spec/unit/monkey_patches/uri_spec.rb
index cff252ac3b..9aca1fc9f1 100644
--- a/spec/unit/monkey_patches/uri_spec.rb
+++ b/spec/unit/monkey_patches/uri_spec.rb
@@ -26,7 +26,7 @@ describe URI do
end
it "returns the hostname without brackets" do
- ipv6_uri.hostname.should == "2a00:1450:4009:809::1008"
+ expect(ipv6_uri.hostname).to eq("2a00:1450:4009:809::1008")
end
end