Sha256: ee2a50995fe9616873ddab73bf5287df8f618df9f6f5ad8bb2586043c15ed574
Contents?: true
Size: 228 Bytes
Versions: 4
Compression:
Stored size: 228 Bytes
Contents
class Run < ActiveRecord::Base has_many :examples, primary_key: :rspec_run, foreign_key: :rspec_run def total_count @total_count ||= examples.size end def runtime @runtime ||= examples.sum(:duration) end end
Version data entries
4 entries across 4 versions & 1 rubygems