summaryrefslogtreecommitdiff
path: root/spec/ruby/optional/capi/typed_data_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/optional/capi/typed_data_spec.rb')
-rw-r--r--spec/ruby/optional/capi/typed_data_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/optional/capi/typed_data_spec.rb b/spec/ruby/optional/capi/typed_data_spec.rb
index 8d2910457c..da56a050fd 100644
--- a/spec/ruby/optional/capi/typed_data_spec.rb
+++ b/spec/ruby/optional/capi/typed_data_spec.rb
@@ -30,7 +30,7 @@ describe "CApiWrappedTypedStruct" do
it "throws an exception for a wrong type" do
a = @s.typed_wrap_struct(1024)
- lambda { @s.typed_get_struct_other(a) }.should raise_error(TypeError)
+ -> { @s.typed_get_struct_other(a) }.should raise_error(TypeError)
end
it "unwraps data for a parent type" do