Coder Social home page Coder Social logo

Comments (9)

radar avatar radar commented on June 23, 2024

I'm guessing this is because it's pointing at the wrong branch in the Gemfile. Taking a look now.

from spree_auth_devise.

peterberkenbosch avatar peterberkenbosch commented on June 23, 2024

Thanks Ryan, noticed the wrong branch.. since the bundle command failed :) so I changed that in my fork. Still having issues though..

from spree_auth_devise.

radar avatar radar commented on June 23, 2024

I am still looking at it.

from spree_auth_devise.

peterberkenbosch avatar peterberkenbosch commented on June 23, 2024

I know.. Thanks.. having some issues wrapping my head around the way it should be solved properly.. there are a number of issues but some need to be solved in spree I think? (dummy app generator accepting a User class param perhaps?) and the user ext. initializer logic moving to lib? That way we can require it in the spec_helper..

Looking forward in seeing what the proper solution should be..

from spree_auth_devise.

radar avatar radar commented on June 23, 2024

Good idea about the user class option :) The install generator accepts a --user-class option that'll let you pass the name of the class through. I updated the installer last week to prompt for this option if you elect to not use the default authentication system too.

The dummy application generator (common:test_app) now also takes an argument for user class. Any particular reason why you would want to move the initializer logic into lib after a change like that? Maybe I'm missing something.

from spree_auth_devise.

peterberkenbosch avatar peterberkenbosch commented on June 23, 2024

it looked like the methods from the initializer are not available for the User when running the specs.. could not require the file as well since it's not in the loadpath from spree_core.. what makes sense.. hence the idea to move the logic somewhere in lib so we can require it in spec_helper..

Will dive in more in a bit... first lunch!

from spree_auth_devise.

radar avatar radar commented on June 23, 2024

The only way I can think of where they'd be unavailable is if Spree.user_class had not been set to your User class inside config/initializers/spree.rb.

from spree_auth_devise.

radar avatar radar commented on June 23, 2024

All the specs are now passing on my machine, just waiting for the CI to give it an all clear. Could you try running it on yours too?

from spree_auth_devise.

peterberkenbosch avatar peterberkenbosch commented on June 23, 2024

Al green here!! Thanks.

from spree_auth_devise.

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.