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,405 of 187,571
Downloads: 328,685

Daily

Ranking: 19,104 of 187,548
Downloads: 25

Depended by

RankDownloadsName
143,7433,980csv_loader

Depends on

RankDownloadsName
13,010,000,950bundler
71,211,569,661activesupport
101,165,196,519rake
28924,848,930rspec
56616,877,747ruby-progressbar
57613,192,940rubocop
296151,616,517colorize
368119,844,252virtus
22,27266,813dissociated_introspection
26,89550,884active_record_schema_scrapper
42,60127,321reverse_parameters

Owners

#GravatarHandle
1iconzeisler