-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
teaspoon 1.2.0 causes Teaspoon::EnvironmentNotFound error #576
Comments
Interesting. I'll look into it.. does it work if you move it up to the root of the project? (I'm not proposing this as the solution, I'm just trying to understand.) |
Thanks @jejacks0n for looking into this. I moved teaspoon_env.rb to the project's root folder and still got the same error. |
We faced similar issue in our teaspoon environment. |
looking at the changes between 1.1.5 and 1.2.0 the problem was likely introduced around this change 5b912da but i'm not finding exactly what is wrong. |
@benbcai can you please test with thanks |
Hi guys! Is this issues was resolved? |
I'm not too sure, I don't have this problem. I am also running Rails 6.1 and ruby 2.7
and my config looks like this
I run |
What is wrong is: if an engine overrides Additionally I think Why? Because |
Why would an engine override I kind of understand the point you're making, but like.. put the file in the path relative to whatever is returned in I'm totally open to a change if there's one that makes more sense. |
Why would rails root be overridable if i'ts bad or not necessary? :) To answer your question: I don't know. I am new to the company and I've seen it overridden in many places with comment it's for testing. I just know I've encountered this issue when upgrading to rails 6. |
I mean, kinda -- but not kinda either. 😂
I also notice that Put your configuration file relative to |
It's done like this: TBH I don't know why you would do that, but I suspect everyone in this thread experiencing this issue has rails root changed whether they know it or not. If anything I can suggest improving error message to include what folder it was looking in. Before: After: |
That's a fair opinion and feedback @marko-avlijas. A PR with that would for sure get merged. |
I am getting the following
Teaspoon::EnvironmentNotFound
error when using version 1.2.0 of teaspoon that just got released yesterday. The error is coming from find_env. My project does have the teaspoon_env.rb file in the spec folder. The error does not occur when locking the version to 1.1.5.My project is on the following version of rails and ruby:
Rails: v5.2.4.1
Ruby: v2.6
The text was updated successfully, but these errors were encountered: