blob: 7518a40987eaa0930f8b84ef72a6dae41d2ef472 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require_relative '../../spec_helper'
ruby_version_is "2.7" do
describe "Struct#deconstruct" do
it "returns an array of attribute values" do
struct = Struct.new(:x, :y)
s = struct.new(1, 2)
s.deconstruct.should == [1, 2]
end
end
end
|