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: 10,184 of 198,430
Downloads: 348,015

Daily

Ranking: 22,212 of 198,401
Downloads: 12

Depended by

RankDownloadsName
146,5314,341csv_loader

Depends on

RankDownloadsName
13,939,528,074bundler
61,475,993,904activesupport
81,462,600,952rake
291,040,144,401rspec
54775,305,133ruby-progressbar
55775,273,768rubocop
327171,684,661colorize
420132,751,196virtus
22,78874,170dissociated_introspection
28,13754,272active_record_schema_scrapper
44,08129,230reverse_parameters

Owners

#GravatarHandle
1iconzeisler