diff --git a/spec/ruby/language/method_spec.rb b/spec/ruby/language/method_spec.rb index 2865ec3467..96abbc649d 100644 --- a/spec/ruby/language/method_spec.rb +++ b/spec/ruby/language/method_spec.rb @@ -839,7 +839,7 @@ describe "A method" do ruby_version_is ""..."2.6" do m("a" => 1, b: 2).should == [{"a" => 1}, 2] end - ruby_version_is ""..."2.6" do + ruby_version_is "2.6" do lambda {m("a" => 1, b: 2)}.should raise_error(ArgumentError) end end