brrygrdn / database_plumber Goto Github PK
View Code? Open in Web Editor NEWFind leaky ActiveRecord models in your RSpec tests
License: MIT License
Find leaky ActiveRecord models in your RSpec tests
License: MIT License
When you have a missing table you don't get a helpful error message:
An error occurred in an after(:all) hook.
NameError: uninitialized constant DatabasePlumber::LeakFinder::InvalidModelError
occurred at ......./bundler/gems/database_plumber-0e4267b65135/lib/database_plumber/leak_finder.rb:32:in `rescue in count_for'
It's very easy to pass minor typos like ignored_adapter
instead of ignored_adapters
without meaningful feedback.
Validation of the options being passed, along with echoing configuration to the user in output would provide a hint when debugging config.
Failure/Error: Unable to find matching line from backtrace
`example` is not available from within an example (e.g. an `it` block) or from constructs that run in the scope of an example (e.g. `before`, `let`, etc). It is only available on an example group (e.g. a `describe` or `context` block).
# /Users/***/.rvm/gems/ruby-2.1.2@***/gems/actionpack-4.1.6/lib/action_dispatch/testing/assertions/routing.rb:171:in `method_missing'
# /Users/***/.rvm/gems/ruby-2.1.2@***/gems/actionpack-4.1.6/lib/action_dispatch/testing/integration.rb:396:in `method_missing'
# ./spec/spec_helper.rb:159:in `block (2 levels) in <top (required)>'
Tables prefixed with HABTM_
are join tables, we should not need to directly clean these up and calling delete_all
/ destroy_all
cannot necessarily be expected to work as intended.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.