Sha256: e133a3751f532e4a7115432f1be5b9595386e779762ebda68d4dddbb55b6d6ed
Contents?: true
Size: 488 Bytes
Versions: 20
Compression:
Stored size: 488 Bytes
Contents
require 'volt/models' describe Persistors::Params do it "should stay as params classes when used" do a = Model.new({}, persistor: Persistors::Params) expect(a._test.class).to eq(Model) expect(a._test._cool.persistor.class).to eq(Persistors::Params) a._items << {_name: 'Test'} expect(a._items.persistor.class).to eq(Persistors::Params) expect(a._items[0].persistor.class).to eq(Persistors::Params) expect(a._items[0]._name.class).to eq(String) end end
Version data entries
20 entries across 20 versions & 1 rubygems