Sha256: 228b74f3e6ca50e0a432093e84d6c2cb1d174bf270ec0ddf60a1a9a39c8f32b7
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
require 'rubygems' require 'shoulda' require 'onfire' class Onfire::EventTable def size source2evt.inject(0)do |memo, evts| memo + evts[1].inject(0) {|sum, h| sum + h[1].size} # h => [key, value]. end || 0 end end class Test::Unit::TestCase def mock(name='my_mock') obj = Class.new do include Onfire attr_accessor :list, :name, :parent def initialize(name) @name = name @list = [] end end.new(name) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onfire-0.2.0 | test/test_helper.rb |