Categories: Testing [Edit]

active_mocker

https://rubygems.org/gems/active_mocker
https://github.com/zeisler/active_mocker
Creates stub classes from any ActiveRecord model. By using stubs in your tests you don't need to load Rails or the database, sometimes resulting in a 10x speed improvement. ActiveMocker analyzes the methods and database columns to generate a Ruby class file. The stub file can be run standalone and comes included with many useful parts of ActiveRecord. Stubbed out methods contain their original argument signatures or ActiveMocker friendly code can be brought over in its entirety. Mocks are regenerated when the schema is modified so your mocks won't go stale, preventing the case where your unit tests pass but production code fails.

Total

Ranking: 9,386 of 187,239
Downloads: 326,946

Daily

Ranking: 9,588 of 187,224
Downloads: 82

Depended by

RankDownloadsName
143,7783,942csv_loader

Depends on

RankDownloadsName
12,973,208,875bundler
71,196,180,149activesupport
101,151,901,046rake
27919,404,019rspec
56608,572,133ruby-progressbar
57604,440,374rubocop
294150,648,944colorize
365119,194,255virtus
22,34065,986dissociated_introspection
26,91450,516active_record_schema_scrapper
42,64527,115reverse_parameters

Owners

#GravatarHandle
1iconzeisler