Sha256: 5f34aa2e9dcac3fd82b66ae2ddf7330a9a1d40e5c79336ab5f4cb62a40cb5e64
Contents?: true
Size: 383 Bytes
Versions: 83
Compression:
Stored size: 383 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/classes' describe "Struct#values" do it "is a synonym for to_a" do car = Struct::Car.new('Nissan', 'Maxima') car.values.should == car.to_a Struct::Car.new.values.should == Struct::Car.new.to_a end end
Version data entries
83 entries across 83 versions & 1 rubygems