

# To make the assertions available to all test cases you can require one of the # following in test/test_helper.rb: # For TestUnit, adds assertions to Test::Unit::TestCase and any derived classes: require 'bean_counter/test_unit' # For MiniTest, adds assertions to MiniTest::Unit::TestCase and any derived classes: require 'bean_counter/mini_test' # To maintain greater control over where the assertions are available, require # bean_counter/test_assertions directly then include BeanCounter::TestAssertions # in any test classes where you want to make use of the assertions: # test/test_helper.rb require 'bean_counter/test_assertions' # test/beaneater_test.rb require 'test_helper' # For TestUnit: class BeaneaterTest < Test:: Unit:: TestCase include BeanCounter:: TestAssertions # assertions will be available to all tests in this class end # Or for MiniTest: class BeaneaterTest < MiniTest:: Unit:: TestCase include BeanCounter:: TestAssertions # assertions will be available to all tests in this class end RSpec InstallationĪdd this line to your application's Gemfile: The entire beanstalkd pool by deleting the appropriate jobs.

If called on a block only inspects jobs enqueued during the execution of

Pool with attributes matching the keys/values of the Hash given.

assert_enqueued/refute_enqueued - Searches all jobs in the beanstalkd.Assertions/Matchers TestUnit/MiniTest Assertionsįor TestUnit/MiniTest, BeanCounter provides 6 assertions/refutations
#Ttr beancounter code
The caption on the Trading Card Series 1 & Series 3 is "Don't Spill The Beans" that phrase means don't tell anyone an embarrassing secret or ruin a surprise for someone and ironically since the Bean Counter is counting Jellybeans (which is the currency in Toontown) any absentminded spill on would make the Jellybeans scatter.Ī "Bean Counter" is a slang term for a statistician or an accountant.BeanCounter provides additional TestUnit/MiniTest assertions and/or RSpec matchers for testing Ruby code that relies onīeaneater and Beanstalkd.Bean Counters do the same damage on all attacks at any level.In the United Sates, bean can sometimes be a slang term for money.However, in Toontown, jellybeans are money. In reality, bean counters do not count beans, they count money.The trading card shows the Bean Counter counting out jellybeans from a pot.However, on the trading card, its head is in the shape of a jellybean.The Bean Counter has the same head and same body as the Downsizer, only wearing a Cashbot suit instead of a Bossbot suit.On the first Toontown commercial, a cog with a Bean Counter head was seen wearing a Lawbot suit.
