Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleaned up whitespace.

  • Loading branch information...
commit ac5196effd695b6e89deb0ee46f5457744c6d679 1 parent 32011c4
@meskyanichi meskyanichi authored
View
2  lib/hirefire/configuration.rb
@@ -8,7 +8,7 @@ class Configuration
#
# @return [Fixnum] default: 1
attr_accessor :max_workers
-
+
##
# Contains the min amount of workers that should always be running
#
View
2  lib/hirefire/environment/base.rb
@@ -189,7 +189,7 @@ def log_and_hire(amount)
def max_workers
HireFire.configuration.max_workers
end
-
+
##
# Wrapper method for HireFire.configuration
# Returns the min amount of workers that should always be running
View
4 spec/environment_spec.rb
@@ -100,12 +100,12 @@ def jobs=(amount)
base.expects(:workers).with(0).once
base.fire
end
-
+
it 'should set the workers to minimum workers when there arent any jobs' do
base.jobs = 0
base.workers = 10
base.stubs(:min_workers).returns(2)
-
+
HireFire::Logger.expects(:message).with('All queued jobs have been processed. Setting workers to 2.')
base.expects(:workers).with(2).once
base.fire
Please sign in to comment.
Something went wrong with that request. Please try again.