Giter Club home page Giter Club logo

database_plumber's People

Contributors

brrygrdn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

database_plumber's Issues

InvalidModelError doesn't exist

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'

Validate options passed to DatabasePlumber#inspect

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.

Error since upgrading to Rspec 3

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)>'

Avoid calling delete_all on HABTM_ tables

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.