mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
6 lines
207 B
Ruby
6 lines
207 B
Ruby
|
describe :struct_inspect, shared: true do
|
||
|
it "returns a string representation without the class name for anonymous structs" do
|
||
|
Struct.new(:a).new("").send(@method).should == '#<struct a="">'
|
||
|
end
|
||
|
end
|