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,511 of 189,128
Downloads: 334,890

Daily

Ranking: 14,155 of 189,104
Downloads: 41

Depended by

RankDownloadsName
143,8774,080csv_loader

Depends on

RankDownloadsName
13,158,345,849bundler
71,267,818,799activesupport
91,223,147,708rake
29946,325,589rspec
55646,752,390ruby-progressbar
56644,175,194rubocop
302155,549,654colorize
379122,705,869virtus
22,17969,244dissociated_introspection
27,13051,739active_record_schema_scrapper
42,94227,744reverse_parameters

Owners

#GravatarHandle
1iconzeisler