Skip to content

jacobat/fake-resque

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FakeResque

Don't want to have the resque infrastructure in place when developing or testing your resque dependent applications? FakeResque will replace Resque and execute any Resque calls synchronously instead of asynchronously.

Usage

require 'fake-resque'

# That's it.

# To use the real Resque

FakeResque.deactivate!

# To disable the real Resque again

FakeResque.activate!

# To drop messages being sent through Resque

FakeResque.block!

# To start sending messages again

FakeResque.unblock!

# Or

FakeResque.activate!

# By default FakeResque will swallow any errors. To raise errors

FakeResque.raise_errors!

# To restore the original behavior of swallowing errors

FakeResque.suppress_errors!

Installation

$ gem install fake-resque

Contributing

Once you've made your great commits:

  1. Fork FakeResque
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Create an Issue with a link to your branch
  5. That's it!

Acknowledgements

Based on the fakefs library by defunkt.

Meta

About

Resque "replacement" for use in development and testing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages