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,429 of 180,404
Downloads: 298,142

Daily

Ranking: 9,603 of 180,385
Downloads: 106

Depended by

RankDownloadsName
141,2263,563csv_loader

Depends on

RankDownloadsName
12,060,853,113bundler
7886,702,884activesupport
16849,094,940rake
23765,651,376rspec
61425,270,539ruby-progressbar
68411,399,820rubocop
254123,771,331colorize
35389,817,203virtus
22,13456,944dissociated_introspection
26,05045,276active_record_schema_scrapper
41,86124,211reverse_parameters

Owners

#GravatarHandle
1iconzeisler