Sha256: 790766b718035853972ee49e20ba6aeb9d809fe5aada1679da43ea31046097b7

Contents?: true

Size: 212 Bytes

Versions: 3

Compression:

Stored size: 212 Bytes

Contents

require File.dirname(__FILE__) + "/../spec_helper"

describe Struct do
  
  it "should have attributes" do
    
    s = Struct.new(:name).new('bob')
    s.attributes.should == { :name => 'bob' }
    
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
datamapper-0.3.0 spec/support/struct_spec.rb
datamapper-0.3.1 spec/support/struct_spec.rb
datamapper-0.3.2 spec/support/struct_spec.rb