Sha256: d93f6c5261747883aca6beeeab7945429e0ff0d631a8ab52721604345784bdb9

Contents?: true

Size: 387 Bytes

Versions: 11

Compression:

Stored size: 387 Bytes

Contents

require 'volt/models'

describe Store do
  it "should stay as store classes when used" do
    a = Store.new
    expect(a._test.class).to eq(Store)
    
    expect(a._test._cool.class).to eq(Store)
    
    a._items << {_name: 'Test'}
    
    expect(a._items.class).to eq(StoreArray)
    expect(a._items[0].class).to eq(Store)
    expect(a._items[0]._name.class).to eq(String)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
volt-0.4.9 spec/models/store_spec.rb
volt-0.4.8 spec/models/store_spec.rb
volt-0.4.7 spec/models/store_spec.rb
volt-0.4.5 spec/models/store_spec.rb
volt-0.4.4 spec/models/store_spec.rb
volt-0.4.3 spec/models/store_spec.rb
volt-0.4.2 spec/models/store_spec.rb
volt-0.4.1 spec/models/store_spec.rb
volt-0.4.0 spec/models/store_spec.rb
volt-0.3.9 spec/models/store_spec.rb
volt-0.3.8 spec/models/store_spec.rb