Skip to content

Commit 0fe2cfe

Browse files
committed
Fix test case title
1 parent 8ae3304 commit 0fe2cfe

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

language/hash_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def h.to_hash; {:b => 2, :c => 3}; end
150150
end
151151

152152
ruby_version_is ""..."3.4" do
153-
it "expands nil using ** into {}" do
153+
it "does not expand nil using ** into {} and raises TypeError" do
154154
h = nil
155155
-> { {a: 1, **h} }.should raise_error(TypeError, "no implicit conversion of nil into Hash")
156156

language/method_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ def m(a = nil, b = {}, v: false)
11771177

11781178
context "when passing **nil into a method that accepts keyword arguments" do
11791179
ruby_version_is ""..."3.4" do
1180-
it "expands nil using ** into {}" do
1180+
it "raises TypeError" do
11811181
def m(**kw) kw; end
11821182

11831183
h = nil

0 commit comments

Comments
 (0)