Giter Site home page Giter Site logo

Ignore Non AR subclasses about active_mocker HOT 5 CLOSED

zeisler avatar zeisler commented on July 20, 2024
Ignore Non AR subclasses

from active_mocker.

Comments (5)

markburns avatar markburns commented on July 20, 2024 1

I've got a local fix for this, so will get a test for it and do a PR
tomorrow and see what you think.
On Thu, 28 Apr 2016 at 01:39, Dustin Zeisler [email protected]
wrote:

I think the bast way to deal with this is to only have these show up when
in debug mode and they should not count as a failure. Since this is not a
blocking issue and only a nice to have I'm going to prioritize less than
the other issues you've have raised.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#44 (comment)

from active_mocker.

markburns avatar markburns commented on July 20, 2024

BTW, happy to help contribute to the project if you can give pointers. We have a bit of time to look at improving our test suite, and one option is to look at using active_mocker to speed things up, if we can get it to work

from active_mocker.

zeisler avatar zeisler commented on July 20, 2024

This was mostly just for debugging and I made the assumption that the model_dir would only contain ActiveRecord models. I could add a flag to ignore such cases.

In my past projects I would put classes as you are mentioning in the lib directory.

from active_mocker.

markburns avatar markburns commented on July 20, 2024

That's not the case for us, and not an option really as the project is huge. Model doesn't necessarily mean the Active Record design pattern. It also doesn't necessarily mean ActiveRecord, the Rails gem.
You can have models that are not persisted. Or persistence related classes that are not necessarily domain concepts or 'models'.

I think it would make sense that the project defaults to just skipping over non AR subclasses. Would you agree? It would also solve the problem with concerns modules causing exceptions.

from active_mocker.

zeisler avatar zeisler commented on July 20, 2024

I think the bast way to deal with this is to only have these show up when in debug mode and they should not count as a failure. Since this is not a blocking issue and only a nice to have I'm going to prioritize less than the other issues you've have raised.

from active_mocker.

Related Issues (20)

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.