Adding test for worker comparison.
Worker requires Resque, client mock usually not needed.
Revert "Worker requires Resque, client mock usually not needed."

This reverts commit 09c5a1d82ea3026010c8e6c129444b6a19230e52.
typo. fix failing test.
Adding pid test, introducing subject for client mock.
Adding test for idle?
Adding test for working?
add default redis server
Move MiniTest initialization after SimpleCov.

This ensures accurate reporting.
Small refactor of logging.
move logging test from legacy to resque.

This is a good test, it shouldn't be in legacy.
We don't need to support 1.0 of redis.rb.

https://github.com/resque/redis-namespace/blob/master/redis-namespace.gemspec#L16
Move #constantize tests out of legacy.

They are decent tests, no reason to be legacy-ified.
Merge pull request #964 from aarti/master

provide a default redis server if not specified
Merge pull request #963 from sshingler/worker_test

More simple tests on Worker
Better test for Backend#reconnect

While we were testing it, we didn't actually test the real condition:
https://coveralls.io/files/4962020

Now, we're actually falling through to that line and handling things the
right way.
Extremely simply checking for fork.

This is really, really hard to get right:
http://bugs.ruby-lang.org/issues/show/2619

    def can_fork?
      pid = fork
      exit unless pid # exit the child immediately
      true
    rescue NotImplementedError
      false
    end

Is the only way to be _really_ sure, but this will be expensive. So we
don't do that. We just leave it as an option, to turn it off per job.

A few tests were setting the instance variable directly, so now they
just turn it off like the normal option.
Push down job assignment into #working_on.

It's silly to make us assemble both parts, so let's push this down.
Inject log into the worker.

Let's break that global dependency.
Remove superfluous reconnect.

This condition only happens if #will_fork? is true, and if it is, we're
going to fork a child to process the job, so the child would reconnect
there. The parent and child don't both need to reconnect after a fork.