29 Sep '13, 6pm

@kerrizor I don't think there's anything in minitest itself, but rails adds something similar: @the_zenspider

Test numeric difference between the return value of an expression as a result of what is evaluated in the yielded block. assert_difference 'Article.count' do post :create, article: {...} end An arbitrary expression is passed in and evaluated. assert_difference 'assigns(:article).comments(:reload).size' do post :create, comment: {...} end An arbitrary positive or negative difference can be specified. The default is 1 . assert_difference 'Article.count', -1 do post :delete, id: ... end An array of expressions can also be passed in and evaluated. assert_difference [ 'Article.count', 'Post.count' ], 2 do post :create, article: {...} end A lambda or a list of lambdas can be passed in and evaluated: assert_difference ->{ Article.count }, 2 do post :create, article: {...} end assert_difference [->{ Article.count }, ->{ Post.count }], 2 do post :create, article: {...} end An error...

Full article: http://api.rubyonrails.org/classes/ActiveSupport/Testing/...

Tweets

Is the Fact That Frank or Rick Said Something E...

domainingtips.com 29 Sep '13, 9pm

It’s enough to at least make me think things through again. When someone like Frank Schilling or Rick Schwartz says someth...

#blogengage Louis Vuitton Adds A New Celebrity Face To Their Brand @LuxuryRentalD

#blogengage Louis Vuitton Adds A New Celebrity ...

Louis Vuitton Adds A New Celebrity Face To Their Brand There’s a new face to the Louis Vuitton brand Having used classic r...

懐かしい - Riding Rails: Merb gets merged into Rail...

weblog.rubyonrails.org 20 Sep '13, 6am

Merb gets merged into Rails 3! Posted by David , December 23, 2008 @ 11:47 am It’s christmas, baby, and do we have a prese...

minitest version 5.0.8 has been released! | sof...

blog.zenspider.com 21 Sep '13, 12am

minitest version 5.0.8 has been released! Published 2013-09-20 @ 17:36 minitest provides a complete suite of testing facil...

You just threw out a perfectly good gallon of milk because you think the “sell by” date means something: Shutt...

You just threw out a perfectly good gallon of m...

grist.org 19 Sep '13, 6pm

Admit it: When you see milk past the “sell by” date in your fridge you’re apt to skip the smell test and throw that stuff ...

How to use Ransack UI helpers with Mongoid on R...

rubyflow.com 30 Sep '13, 6pm

How to use Ransack UI helpers with Mongoid on Rails 4.0 Posted by mencio on September 30, 2013 — 0 comments I just posted ...

Shabaab plot to attack London planned to be 'si...

longwarjournal.org 27 Sep '13, 4pm

Fazul Abdullah Mohammed, from his wanted posters. A document found after Somali troops killed Fazul Abdullah Mohammed, al ...

ほんとだ、ちゃんと reset_column_information について書いてあった >...

guides.rubyonrails.org 26 Sep '13, 9am

You can think of each migration as being a new 'version' of the database. A schema starts off with nothing in it, and each...

2013 UROC 100k Group Think Predictions #trailrunning

2013 UROC 100k Group Think Predictions #trailru...

irunfar.com 28 Sep '13, 7am

How the Group Think Predictions Work Back to the predictions. Below, we attempt to apply a hive-mentality approach to see ...

3 reasons to think veggie when buying a leather handbag via @pierotucci

3 reasons to think veggie when buying a leather...

pierotucci.wordpress.com 25 Sep '13, 2am

3 reasons to think veggie when buying a leather handbag Leather breathes; it absorbs from its environment and gives back a...

server side #rails validations

guides.rubyonrails.org 26 Sep '13, 11am

Database constraints and/or stored procedures make the validation mechanisms database-dependent and can make testing and m...

“We Have Something in Common”! Davido & Cameroo...

bellanaija.com 27 Sep '13, 2pm

Stay Healthy but Eat Yummy! This Meal Plan is for You “We Have Something in Common”! Davido & Cameroon Football Star Samue...

Contribute to Ruby on Rails Guides Guidelines:

edgeguides.rubyonrails.org 16 Sep '13, 6pm

Guides are written in GitHub Flavored Markdown . There is comprehensive documentation for Markdown , a cheatsheet , and ad...

Graphene Stock Investing: What The Pros Think

altenergystocks.com 28 Sep '13, 2pm

Graphene has unmatched capabilities in both electronic and material/mechanical capacities. For example, it has the ability...

Slides from my @rockymtnruby architecture talk:...

pivotallabs.com 26 Sep '13, 8pm

If you are trying to test controllers under a Rails engine, you might come across this error: Failure/Error: get :index Ac...