Sha256: f16c1cc2bbe737b6755d34076af9e731812d4cec92851bca512f3649b5686815
Contents?: true
Size: 769 Bytes
Versions: 8
Compression:
Stored size: 769 Bytes
Contents
ENV['RAILS_ENV']='test' require "rubygems" require 'bundler/setup' require 'active_support' require 'spec' require 'spec/autorun' $: << (File.dirname(__FILE__) + "/../lib") require "say_when" Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f} Spec::Runner.configure do |config| config.mock_with :rspec end module SayWhen module Test class TestTask def execute(data) data[:result] || 0 end end class TestProcessor < SayWhen::Processor::Base attr_accessor :jobs def initialize(scheduler) super(scheduler) reset end def process(job) self.jobs << job end def reset self.jobs = [] end end end end
Version data entries
8 entries across 8 versions & 1 rubygems