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,336 of 186,995
Downloads: 323,266

Daily

Ranking: 9,721 of 186,959
Downloads: 145

Depended by

RankDownloadsName
143,8933,847csv_loader

Depends on

RankDownloadsName
12,908,242,014bundler
71,169,578,855activesupport
101,129,028,222rake
27909,782,048rspec
56595,171,171ruby-progressbar
57590,210,635rubocop
292148,896,865colorize
361117,977,240virtus
22,54463,910dissociated_introspection
26,78449,885active_record_schema_scrapper
42,60526,566reverse_parameters

Owners

#GravatarHandle
1iconzeisler