summaryrefslogtreecommitdiff
path: root/spec/ruby/core/struct/shared/accessor.rb
blob: dbf5e78f4398ae918436d531d8cd2ca6eeac84f9 (plain)
1
2
3
4
5
6
7
describe :struct_accessor, shared: true do
  it "does not override the instance accessor method" do
    struct = Struct.new(@method.to_sym)
    instance = struct.new 42
    instance.send(@method).should == 42
  end
end