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,620 of 191,542
Downloads: 337,735

Daily

Ranking: 22,956 of 191,513
Downloads: 17

Depended by

RankDownloadsName
144,2964,120csv_loader

Depends on

RankDownloadsName
13,300,917,942bundler
71,313,022,086activesupport
81,276,466,484rake
29965,445,035rspec
55672,398,880ruby-progressbar
56670,815,721rubocop
307158,575,584colorize
387125,247,484virtus
22,23570,231dissociated_introspection
27,26452,250active_record_schema_scrapper
43,10528,036reverse_parameters

Owners

#GravatarHandle
1iconzeisler