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: 10,046 of 196,721
Downloads: 346,194

Daily

Ranking: 36,893 of 196,694
Downloads: 1

Depended by

RankDownloadsName
145,5114,302csv_loader

Depends on

RankDownloadsName
13,728,237,794bundler
71,426,725,582activesupport
81,410,641,125rake
291,017,967,488rspec
55744,207,119ruby-progressbar
56743,824,096rubocop
322167,622,385colorize
412130,667,943virtus
22,59673,557dissociated_introspection
27,87953,869active_record_schema_scrapper
43,78728,942reverse_parameters

Owners

#GravatarHandle
1iconzeisler