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,833 of 192,704
Downloads: 340,780

Daily

Ranking: 26,910 of 192,689
Downloads: 9

Depended by

RankDownloadsName
144,8494,159csv_loader

Depends on

RankDownloadsName
13,401,824,266bundler
71,343,546,572activesupport
81,315,196,836rake
29978,087,570rspec
55690,557,034ruby-progressbar
56688,972,761rubocop
311160,744,564colorize
392126,730,733virtus
22,42971,129dissociated_introspection
27,53752,731active_record_schema_scrapper
43,36128,298reverse_parameters

Owners

#GravatarHandle
1iconzeisler