Why I don't like factory_girl: http://blog.steveklabnik.com/posts/2012-07-14-why-i-don-t-like-factory_girl …
-
-
Replying to @steveklabnik
@steveklabnik great post! But what about scopes? You have to create objects for testing the gen. query. Do you test them and if you do: how?1 reply 0 retweets 0 likes -
Replying to @markusschwed
@markusschwed I tend to not use rails' scope feature and just use a method that makes ActiveRelations1 reply 0 retweets 0 likes -
Replying to @steveklabnik
@steveklabnik Do you do this for testing purposes? How do you chain these “scope methods” if you have 2 def. and need them in another one?1 reply 0 retweets 0 likes -
Replying to @markusschwed
@markusschwed I do it because it's simpler to me than using a macro. You just method chain: https://gist.github.com/cf924281ea70e7c058a8 …1 reply 0 retweets 0 likes -
Replying to @steveklabnik
@steveklabnik Ah, cool, Haven’t known that chaining is possible, that way. And in test, you just do a expectation on Foo.where(..).with(..)?1 reply 0 retweets 0 likes
@markusschwed yeah, after Rails 3. yep!
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.