summaryrefslogtreecommitdiff
path: root/spec/ruby/core/struct/shared/inspect.rb
blob: 90594a5452d30a244dd7891f78526f87024827e3 (plain)
1
2
3
4
5
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