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,894 of 193,756
Downloads: 342,234

Daily

Ranking: 42,965 of 193,649
Downloads: 3

Depended by

RankDownloadsName
145,3194,173csv_loader

Depends on

RankDownloadsName
13,494,238,297bundler
71,367,928,484activesupport
81,345,947,699rake
29989,540,006rspec
55706,260,659ruby-progressbar
56705,297,141rubocop
318162,759,214colorize
394127,962,884virtus
22,46271,966dissociated_introspection
27,65052,997active_record_schema_scrapper
43,47628,466reverse_parameters

Owners

#GravatarHandle
1iconzeisler