Sha256: 634c4e9be08719caf98c072252ec0c02d8993e81154b9c22c3ec37a5abd2b838
Contents?: true
Size: 532 Bytes
Versions: 83
Compression:
Stored size: 532 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/classes' describe "Struct#inspect" do it "returns a string representation of some kind" do car = Struct::Car.new('Ford', 'Ranger') car.inspect.should == '#<struct Struct::Car make="Ford", model="Ranger", year=nil>' Whiskey = Struct.new(:name, :ounces) Whiskey.new('Jack', 100).inspect.should == '#<struct Whiskey name="Jack", ounces=100>' end end
Version data entries
83 entries across 83 versions & 1 rubygems