We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 111cee4 commit d9b3cfdCopy full SHA for d9b3cfd
1 file changed
language/predefined_spec.rb
@@ -621,6 +621,30 @@ def foo
621
end
622
623
624
+ ruby_version_is ""..."3.4" do
625
+ it "can only be assigned an array of String" do
626
+ begin
627
+ raise
628
+ rescue
629
+ -> {
630
+ $@ = 123
631
+ }.should raise_error(TypeError, "backtrace must be Array of String")
632
+ end
633
634
635
+
636
+ ruby_version_is "3.4" do
637
+ it "can only be assigned an array of String or an Array of Thread::Backtrace::Location" do
638
639
640
641
642
643
+ }.should raise_error(TypeError, "backtrace must be an Array of String or an Array of Thread::Backtrace::Location")
644
645
646
647
648
it "cannot be assigned when there is no a rescued exception" do
649
-> {
650
$@ = []
0 commit comments