blob: 994f3f443e6725182ec0de38bf61cbab029ed96e (
plain)
1
2
3
4
5
6
7
8
9
|
describe :struct_dup, shared: true do
it "duplicates members" do
klass = Struct.new(:foo, :bar)
instance = klass.new(14, 2)
duped = instance.send(@method)
duped.foo.should == 14
duped.bar.should == 2
end
end
|