Sha256: b04b9545f105d010dde153e5a4c903cad54a634fd26c20499bb93f8d853906bd

Contents?: true

Size: 497 Bytes

Versions: 5

Compression:

Stored size: 497 Bytes

Contents

require File.expand_path("#{File.dirname(__FILE__)}/../require")
Require.spec_helper!

Spec::Runner.configure do |config|
end

$db, $log, $mail = ActiveWrapper.setup(
  :base => File.dirname(__FILE__),
  :env => 'test'
)
$db.establish_connection

def create_counter
  Counter.create(:counter => 1)
end

def start
  PeriodicCounter.new('test', File.dirname(__FILE__))
end

def stub_time(time)
  Time.stub!(:now).and_return(time)
end

class Counter < ActiveRecord::Base
  serialize :counter_data
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
periodic_counter-0.1.4 spec/spec_helper.rb
periodic_counter-0.1.3 spec/spec_helper.rb
periodic_counter-0.1.2 spec/spec_helper.rb
periodic_counter-0.1.1 spec/spec_helper.rb
periodic_counter-0.1.0 spec/spec_helper.rb