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,448 of 188,277
Downloads: 332,269

Daily

Ranking: 15,671 of 188,252
Downloads: 45

Depended by

RankDownloadsName
143,7124,044csv_loader

Depends on

RankDownloadsName
13,082,208,484bundler
71,240,084,290activesupport
101,189,560,286rake
29935,725,168rspec
55631,482,786ruby-progressbar
57628,618,773rubocop
299153,634,870colorize
375121,172,032virtus
22,25167,997dissociated_introspection
26,99751,401active_record_schema_scrapper
42,75027,568reverse_parameters

Owners

#GravatarHandle
1iconzeisler