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

Version Path
rhodes-3.0.0.beta.6 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-3.0.0.beta.5 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-3.0.0.beta.4 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-3.0.0.beta.3 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-3.0.0.beta.2 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-3.0.0.beta.1 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.4.1 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.4.1.beta.1 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.4.0 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.4.0.beta.2 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.4.0.beta.1 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.3.2 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.3.2.beta.2 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.3.2.beta.1 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.3.1 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.3.1.beta.1 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.3.0 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.3.0.beta.3 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.3.0.beta.2 spec/framework_spec/app/spec/core/struct/values_spec.rb
rhodes-2.3.0.beta.1 spec/framework_spec/app/spec/core/struct/values_spec.rb