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,140 of 197,744
Downloads: 347,241

Daily

Ranking: 17,601 of 197,724
Downloads: 25

Depended by

RankDownloadsName
146,3094,321csv_loader

Depends on

RankDownloadsName
13,863,547,421bundler
61,458,386,728activesupport
81,444,561,272rake
291,032,112,907rspec
54764,191,394ruby-progressbar
55763,949,454rubocop
326170,303,961colorize
419132,017,377virtus
22,71973,966dissociated_introspection
28,03354,141active_record_schema_scrapper
43,97229,139reverse_parameters

Owners

#GravatarHandle
1iconzeisler