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,012 of 196,106
Downloads: 346,148

Daily

Ranking: 26,333 of 196,079
Downloads: 3

Depended by

RankDownloadsName
145,1784,299csv_loader

Depends on

RankDownloadsName
13,666,535,620bundler
71,411,402,789activesupport
81,393,995,228rake
291,010,539,582rspec
56734,317,147ruby-progressbar
57733,928,444rubocop
322166,400,703colorize
409130,007,135virtus
22,53073,459dissociated_introspection
27,80953,787active_record_schema_scrapper
43,73128,891reverse_parameters

Owners

#GravatarHandle
1iconzeisler