Giter VIP home page Giter VIP logo

Comments (3)

apotonick avatar apotonick commented on June 14, 2024

We removed the explicit require in the cells railtie, see here: #57

from cells.

cameel avatar cameel commented on June 14, 2024

Ok. So it seems that Cell::TestCase does not get automatically loaded by Test::Unit after all. That's because lib/ directories from engines and railties are not added by Rails to config.autoload_paths automatically. I wonder why is it autoloaded by rspec-cells. Maybe it requires it explicitly?

So I think that CHANGELOG and README should be updated to say that when using Test::Unit you need to put require 'cell/test_case' in test_helper.rb. Or you could make cells add its lib/ to config.autoload_paths. It would probably be something like this:

# lib/cells/railtie.rb
initializer 'cells.add_autoload_paths', :before => :set_autoload_paths do |app|
  app.config.autoload_paths << File.expand_path("../../lib", File.dirname(__FILE__))
end

UPDATE: Since I made that change anyway to see if it works, here's a patch in case you wanted to use this: #72

from cells.

apotonick avatar apotonick commented on June 14, 2024

Added a note here: 2930328

Thanks, Kamil, you're a great help!!!

from cells.

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.