Skip to content

Commit

Permalink
Import specs for constants of Struct
Browse files Browse the repository at this point in the history
This follows upstream change ruby/spec#1070
  • Loading branch information
herwinw committed Sep 4, 2023
1 parent 25c2c41 commit dfe3b9c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/core/struct/constants_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require_relative '../../spec_helper'

ruby_version_is "3.2" do
describe "Struct::Group" do
it "is no longer defined" do
Struct.should_not.const_defined?(:Group)
end
end

describe "Struct::Passwd" do
it "is no longer defined" do
Struct.should_not.const_defined?(:Passwd)
end
end
end

0 comments on commit dfe3b9c

Please sign in to comment.