25 April 2014

The Ruby Reflector

Topic

MiniTest

  Source Favicon
By Mike Gunderloy of A Fresh Cup 11 months ago.
Email

Week of May 13 - May 19, 2013

The master code is, as one would expect, in upheaval again. This week featured a big rewrite of callback internals, though I haven't sussed out whether it changes any features in that area.

3073c531 adds Minitest 5 compatibility to Rails 4.

afreshcup.com Read
  Source Favicon
By James Mead of Blog - James Mead 11 months ago.
Email

Release Notes

Official support for MiniTest v5. Fixes issue #156 . Thanks to Ryan Davis .

blog.floehopper.org Read
  Source Favicon
By nickhammond of Nick Hammond 12 months ago.
Email

…what's going on. The seed is if you wanted to run the exact same test again in the same exact order. Minitest runs your test in a random order to ensure you don't have depenedencies that have been setup from previous tests before running a new test within that class. Our test class is pretty simple right now so we don't really need to be concerned with that. The E indicates that there was an error with our test file which it outlines below "1) Error:". Then there's …

nickhammond.com Read
  Source Favicon
By James Mead of Blog - James Mead 1 year ago.
Email

…for reporting.

Safer restoration of stubbed method visibility. Fixes issue #141 . Thanks to Aman Gupta .

Ensure Mockery instance gets reset even if exception raised. Fixes issue #144 .

Adapt Mocha acceptance tests to cope with changes in output from latest (v4.6.2) of MiniTest.

Updates to README about Rails compatibility.

blog.floehopper.org Read
  Source Favicon
By interblah.net of interblah.net 1 year ago.
Email

A striking parallel with MiniTest

Another new instance of the ExampleGroup subclass is created. Remember, RSpec created one instance of the class for the before :all blocks, but now it's creating a fresh instance for this specific spec to be evaluated against.

Thinking back to how MiniTest works , there's a striking parallel: where MiniTest would instantiate a new instance of the MiniTest::Unit:: TestCase for each test method, RSpec is creating a new instance …

interblah.net Read
  Source Favicon
By interblah.net of interblah.net 1 year ago.
Email

MiniTest::Unit, a.a. the "runner"

The call to MiniTest:: Unit.new.run simply calls MiniTest:: Unit.runner. run , passing the command-line arguments through. runner is a class method on MiniTest::Unit , which returns an instance of MiniTest::Unit by default, although it can be configured to return anything else by setting MiniTest:: Unit.runner = <something else> .

So, an instance of MiniTest::Unit was created in the unit test, which then calls run on …

interblah.net Read
  Source Favicon
By Giles Bowkett of Giles Bowkett 1 year ago.
Email

MiniTest for testing

Fat Models, Skinny Controllers

There has been a ‘second default stack' brewing for a while now. I'm going to call this the "Prime stack". This stack's approximate choices are:

Haml for view templates

PostgreSQL for databases

Rspec/ Cucumber for testing

Skinny models, controllers, and a service layer

But his metaphor breaks down a little, because the second stack isn't really a stack:

A considerable minority …

gilesbowkett.blogspot.com Read
  Source Favicon
By Joshua Timberman of Chef Blog over 1 year ago.
Email

Minitest Chef

As mentioned previously, with two noted exceptions, the minitest-chef tests are located in the files/default/tests/minitest directory of the apache2 cookbook. We use minitest-chef-handler RubyGem with minitest-handler cookbook to automatically run tests on the node after the specified configuration has been converged with test-kitchen.

Additionally, some helper methods are in the support directory for minitest-chef to use. This should be required in any …

opscode.com Read
  Source Favicon
Email

Phil Cohen ( phlipper ) added MiniTest syntax methods to the GETTING STARTED.md page for factory_girl in 06ff258 .

neat

neat got some help from Reda Lemeden ( kaishin ) including a fix for breakpoint values in the README 120ce1b and support for using both min- and max- in breakpoint() 9292467 .

dotfiles

Our dotfiles are now more tmux compatible thanks to Joshua Clayton ( joshuaclayton ) …

robots.thoughtbot.com Read
  Source Favicon
By Bryan McLellan of Chef Blog over 1 year ago.
Email

…] - [regression] provider for resource changes post-10.12.0 breaks node attribute usage in MiniTest:: Chef

[ CHEF-3416 ] - Incorrect reference to object.raw data when editing a data bag with print after specified

[ CHEF-3435 ] - deploy resource doesn't create the deploy to or shared path directories

[ CHEF-3443 ] - Failed registration results in an exception, masking the true failure

[ CHEF-3449 ] - …

opscode.com Read