Sha256: ca96f4b401c9d109db3036f5c5f0ab8fde6eec7dd2ca3997d022fb453f1fa32a
Contents?: true
Size: 571 Bytes
Versions: 7
Compression:
Stored size: 571 Bytes
Contents
require 'rubygems' require 'bundler/setup' $:.unshift File.expand_path('../../lib', __FILE__) require 'eventus' Bundler.require :development Dir[File.join(File.dirname(__FILE__), 'support', '*.rb')].each { |d| require d } RSpec.configure do |config| config.mock_with :rspec end def create_commit(id, start, *bodies) if bodies[0].is_a? Range bodies = bodies[0] end bodies.each.with_index(start).map do |b, i| { 'name' => 'cereal', 'body' => b, 'time' => Time.now.utc.iso8601, 'sid' => id, 'sequence' => i } end end
Version data entries
7 entries across 7 versions & 1 rubygems