Skip to content

Commit

Permalink
Specs for removed constants in Struct
Browse files Browse the repository at this point in the history
  • Loading branch information
herwinw committed Sep 4, 2023
1 parent 287a11c commit d5692d8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 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 d5692d8

Please sign in to comment.