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,096 of 197,051
Downloads: 346,701

Daily

Ranking: 23,557 of 197,010
Downloads: 9

Depended by

RankDownloadsName
146,0204,311csv_loader

Depends on

RankDownloadsName
13,792,501,566bundler
71,442,365,801activesupport
81,427,168,861rake
291,024,975,886rspec
54753,879,909ruby-progressbar
55753,518,357rubocop
323168,941,582colorize
413131,338,839virtus
22,64973,815dissociated_introspection
27,94754,043active_record_schema_scrapper
43,82629,087reverse_parameters

Owners

#GravatarHandle
1iconzeisler