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,587 of 190,402
Downloads: 336,583

Daily

Ranking: 26,014 of 190,364
Downloads: 11

Depended by

RankDownloadsName
144,1304,101csv_loader

Depends on

RankDownloadsName
13,247,375,353bundler
71,295,989,549activesupport
81,257,384,115rake
29958,215,468rspec
55662,767,395ruby-progressbar
56660,993,609rubocop
305157,486,768colorize
384124,362,390virtus
22,19669,967dissociated_introspection
27,22052,035active_record_schema_scrapper
43,06727,901reverse_parameters

Owners

#GravatarHandle
1iconzeisler