Skip to content

Commit

Permalink
Fix build and clean style, dropping Ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
NuckChorris committed Apr 20, 2015
1 parent 7be1745 commit e2869ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.2
- jruby-19mode
- jruby-9.0.0.0.pre1
script: bundle exec rake test
addons:
code_climate:
Expand Down
4 changes: 1 addition & 3 deletions spec/sidekiq/debounce_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'spec_helper'
require 'sidekiq/debounce'
require 'sidekiq'
require 'pry'

class DebouncedWorker
include Sidekiq::Worker
Expand All @@ -17,14 +16,13 @@ def perform(_a, _b); end
end

after do
Sidekiq.redis_pool.with { |redis| redis.flushdb }
Sidekiq.redis_pool.with(&:flushdb)
end

let(:set) { Sidekiq::ScheduledSet.new }
let(:sorted_entry) { Sidekiq::SortedEntry.new(set, 0, 'jid' => '54321') }

it 'queues a job normally at first' do

DebouncedWorker.perform_in(60, 'foo', 'bar')
set.size.must_equal 1, 'set.size must be 1'
end
Expand Down

0 comments on commit e2869ef

Please sign in to comment.