Why do we make testing so complicated? Timecop, VCR, webmock, shoulda-matchers, factory_girl, rspec-integrates-with-your-smart-refrigerator
-
-
Timecop: Time, Date, DateTime are all basically a global variables. Timecop works around not being able to inject these as dependencies.
-
VCR, Webmock: Ecosystem missing good request CQRS abstraction. Workaround is stub the world and record massive HTTP request+response files
-
Shoulda matchers: How the heck do we test these massive rails god objects that are hard to setup? Corresponding god object gem!
-
Also especially with controllers there is just a lot of testing that requires coupling to the implementation. Better a gem do it that me

-
FactoryGirl: DB FKs+validation+callbacks coupled to domain model! Tons of setup & unclear how to decouple. Workaround: DSL + deep AR stubs!
-
BTW I don't think these libs are bad. They are trying to solve pain they didn't introduce. Can be a problem though if you don't realize that
End of conversation
New conversation -
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.