Skip to content

Commit

Permalink
Merge pull request #1070 from herwinw/struct_removed_constants
Browse files Browse the repository at this point in the history
Specs for removed constants in Struct
  • Loading branch information
andrykonchin authored Sep 4, 2023
2 parents 287a11c + d5692d8 commit cf05c2b
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 cf05c2b

Please sign in to comment.