Sha256: 4d0df2d69e908f5a1be1543e919b808006b8f48fe6993c81dee7ba4350b24908
Contents?: true
Size: 835 Bytes
Versions: 1
Compression:
Stored size: 835 Bytes
Contents
require 'simplecov' require 'rspec' require 'active_job' # Start Simplecov SimpleCov.start # Configure RSpec RSpec.configure do |config| config.color = true config.fail_fast = false config.order = :random Kernel.srand config.seed config.expect_with :rspec do |c| c.syntax = :expect end end # Module helper for unit tests module JobBuffer class << self def clear values.clear end def add(value) values << value end def values @values ||= [] end def last_value values.last end end end # Class helper for unit tests class HelloJob < ActiveJob::Base def perform(greeter = "David") JobBuffer.add("#{greeter} says hello") end end # Configure I18n otherwise it throws errors in syslog I18n.available_locales = [:en] # Load lib require 'syslogger'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
syslogger-1.6.6 | spec/spec_helper.rb |