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,069 of 184,502
Downloads: 314,591

Daily

Ranking: 17,200 of 184,487
Downloads: 4

Depended by

RankDownloadsName
143,0503,751csv_loader

Depends on

RankDownloadsName
12,588,400,642bundler
71,048,946,608activesupport
101,011,584,645rake
26847,304,018rspec
56522,645,430ruby-progressbar
62513,367,811rubocop
275140,156,998colorize
359107,708,256virtus
22,47161,147dissociated_introspection
26,43448,618active_record_schema_scrapper
42,33625,818reverse_parameters

Owners

#GravatarHandle
1iconzeisler