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,211 of 199,228
Downloads: 349,432

Daily

Ranking: 21,887 of 199,184
Downloads: 30

Depended by

RankDownloadsName
146,8654,364csv_loader

Depends on

RankDownloadsName
14,015,435,206bundler
61,493,482,686activesupport
71,480,270,976rake
291,048,421,257rspec
54786,463,887rubocop
55786,416,068ruby-progressbar
331172,973,391colorize
421133,506,207virtus
22,86474,568dissociated_introspection
28,21754,534active_record_schema_scrapper
44,20129,373reverse_parameters

Owners

#GravatarHandle
1iconzeisler