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: 8,430 of 180,392
Downloads: 298,362

Daily

Ranking: 33,627 of 180,379
Downloads: 9

Depended by

RankDownloadsName
141,1933,565csv_loader

Depends on

RankDownloadsName
12,065,494,962bundler
7888,160,090activesupport
16850,588,273rake
23766,393,908rspec
61426,114,844ruby-progressbar
68412,241,188rubocop
254123,952,402colorize
35389,952,922virtus
22,12057,008dissociated_introspection
26,03845,316active_record_schema_scrapper
41,81824,246reverse_parameters

Owners

#GravatarHandle
1iconzeisler