Categories: None [Edit]

mockumentary

https://rubygems.org/gems/mockumentary
https://github.com/baccigalupi/mockumentary
With the happy proliferation of TDD, test suites are getting massive, and developer efficiency is dwindling as we wait for our tests to pass. There is a big tradeoff between making unit test more integrationish (and therefore more reliable) vs. making them very mocky, unity and fast. Mockumentary is a library for the later. It inspects the ActiveRecord universe and makes a series of AR mockeries that approximate model without hitting the database, or making any assertions. The assertions, they are still part of the developers job. Mocumentary has two types of AR mockeries: One is used within the Rails universe. It uses introspection to derive association and field information. The second is a static copy built from the first. This static version can be used outside the Rails test universe in a suite faster than the speed of Rails environment load time. Mocking isn't for everyone, so test-drive responsibly.

Total

Ranking: 102,309 of 193,553
Downloads: 8,131

Daily

Ranking: 94,779 of 193,540
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,478,064,646bundler
71,363,743,657activesupport
29987,555,911rspec
36799,127,714activerecord
103462,531,634hashie
152326,680,279faker
279185,234,346sqlite3
4,3252,237,342jeweler

Owners

#GravatarHandle
1iconrubyghetto