Sha256: 382393a088bdf5b8aea5e034f0ac71ac78779780c0cee6a5a6c8c7cbb085f425
Contents?: true
Size: 288 Bytes
Versions: 9
Compression:
Stored size: 288 Bytes
Contents
require 'volt/models' describe ReactiveBlock do it "should call cur through the reactive count to the number" do model = ReactiveValue.new(Model.new) model._items << {_name: 'ok'} count = model._items.count {|m| m._name == 'ok' } expect(count.cur).to eq(1) end end
Version data entries
9 entries across 9 versions & 1 rubygems