20 Mar '12, 3am

Getting into factories. This really helped! How I learned to test my Rails applications, Part 3: Model specs

I won’t spend a lot of time bad-mouthing fixtures—frankly, it’s already been done. Long story short, there are two issues presented by fixtures I’d like to avoid: First, fixture data can be brittle and easily broken (meaning you spend about as much time maintaining your test data as you do your tests and actual code); and second, Rails bypasses Active Record when it loads fixture data into your test database. What does that mean? It means that important things like your models’ validations are ignored. This is bad!

Full article: http://everydayrails.com/2012/03/19/testing-series-rspec-...

Tweets

How I learned to test my Rails applications, Pa...

everydayrails.com 13 Mar '12, 2am

How I learned to test my Rails applications, Part 1: Introduction March 12, 2012 Ruby on Rails and automated testing go ha...

3 things I learned about convergence at VERGE

3 things I learned about convergence at VERGE

greenbiz.com 19 Mar '12, 5am

When my colleagues and I at GreenBiz Group first began talking about VERGE, it was all about tech: the convergence of ener...

Rails Dispatch | Presented by Engine Yard:

railsdispatch.com 19 Mar '12, 1pm

One of the more confusing parts of the prior ActionMailer API for new users was a number of mysterious methods you needed ...

LOVE THIS POST

cruzteng.com 20 Mar '12, 4pm

I have zero interest in the book and the so-called 10 year series. I think I’m gonna fail the silly test. Yes, don’t argue...

What's New in Edge Rails #13:

afreshcup.com 19 Mar '12, 10am

Monday, March 19, 2012 at 5:02AM Week of March 11-March 17, 2012 The big news this week: Active Resource has been removed ...

omgbloglol - The Path to Rails 3: Introduction:

omgbloglol - The Path to Rails 3: Introduction:

omgbloglol.com 11 Mar '12, 9am

The Path to Rails 3: Introduction Wow, over half a year with no blog post. That may be a new record for blog laziness for ...

The Complete Guide to Rails Plugins: Part I | R...

nubyonrails.com 15 Mar '12, 7pm

# Use the generator to make a transmogrifier plugin ./script/generate plugin transmogrifier create vendor/plugins/transmog...

AMD multimedia display technology - providing smooth HD multimedia embedded applications

AMD multimedia display technology - providing s...

digitimes.com 20 Mar '12, 9am

AMD multimedia display technology - providing smooth HD multimedia embedded applications Sponsored content [Tuesday 20 Mar...

Use minitest with rails 3.2

railscasts.com 18 Mar '12, 4pm

Ryan, do you already use MiniTest instead of the "classic" stack around RSpec ect as your standard approach? Or does it de...