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

Version Path
volt-0.7.23 spec/models/reactive_block_spec.rb
volt-0.7.22 spec/models/reactive_block_spec.rb
volt-0.7.21 spec/models/reactive_block_spec.rb
volt-0.7.20 spec/models/reactive_block_spec.rb
volt-0.7.19 spec/models/reactive_block_spec.rb
volt-0.7.18 spec/models/reactive_block_spec.rb
volt-0.7.17 spec/models/reactive_block_spec.rb
volt-0.7.16 spec/models/reactive_block_spec.rb
volt-0.7.15 spec/models/reactive_block_spec.rb