Permalink
Browse files

Fix test suite

  • Loading branch information...
ondrejbartas committed Jun 25, 2015
1 parent f1c708a commit eeabf070124fdee88581f3566918c0f18c7c05fb
Showing with 698 additions and 725 deletions.
  1. +2 −2 .travis.yml
  2. +10 −9 Gemfile
  3. +3 −1 Rakefile
  4. +1 −7 test/test_helper.rb
  5. +496 −511 test/unit/job_test.rb
  6. +123 −127 test/unit/poller_test.rb
  7. +63 −68 test/unit/web_extesion_test.rb
View
@@ -3,7 +3,7 @@ rvm:
- jruby-19mode
- rbx-19mode
- 2.0.0
- 2.1.0
- 2.2.2
services:
- redis-server
branches:
@@ -18,4 +18,4 @@ env:
matrix:
allow_failures:
- rvm: jruby-19mode
- rvm: rbx-19mode
- rvm: rbx-19mode
View
19 Gemfile
@@ -1,30 +1,31 @@
source 'https://rubygems.org'
gem 'tilt' , '< 2.0.0'
gem "sidekiq", ">= 2.17.3"
gem 'sidekiq', '>= 2.17.3'
gem 'rufus-scheduler', '>= 2.0.24'
group :development do
gem "bundler"
gem "simplecov"
gem 'bundler'
gem 'simplecov'
gem 'shoulda-context'
gem "turn"
gem 'rack'
gem 'rack-test'
gem "jeweler", "~> 1.8.3"
gem 'jeweler', '~> 1.8.3'
gem "sdoc" # sdoc -N .
gem 'minitest'
gem 'test-unit'
gem 'sdoc' # sdoc -N .
gem "slim"
gem "sinatra"
gem 'slim'
gem 'sinatra'
gem 'mocha'
gem 'coveralls'
gem "shotgun"
gem 'shotgun'
# gem 'guard'
# gem 'guard-minitest'
View
@@ -1,7 +1,9 @@
# encoding: utf-8
require 'rubygems'
require 'bundler/setup'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
@@ -58,4 +60,4 @@ namespace :test do
t.warning = false
t.verbose = false
end
end
end
View
@@ -9,7 +9,7 @@
end
require 'simplecov'
SimpleCov.start do
SimpleCov.start do
add_filter "/test/"
add_group 'SidekiqCron', 'lib/'
@@ -19,7 +19,6 @@
require "minitest/autorun"
require 'shoulda-context'
require 'turn'
require "rack/test"
require "mocha/setup"
@@ -45,10 +44,6 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'sidekiq-cron'
class Test::Unit::TestCase
end
class CronTestClass
include Sidekiq::Worker
@@ -65,4 +60,3 @@ def perform args = {}
puts "super croned job #{args}"
end
end
Oops, something went wrong.

0 comments on commit eeabf07

Please sign in to comment.