Skip to content

Use require_relative to load cookbooks#4802

Merged
philbogle merged 1 commit into
stagingfrom
require_relative
Oct 25, 2015
Merged

Use require_relative to load cookbooks#4802
philbogle merged 1 commit into
stagingfrom
require_relative

Conversation

@philbogle

Copy link
Copy Markdown
Contributor

Use require_relative for loading the http_cache library so that the require will succeed regardless of the current working directory.

(The current require statement for loading cookbooks only works when the current working directory is dashboard and doesn't work when I run from test/ui.)

@wjordan

wjordan commented Oct 25, 2015

Copy link
Copy Markdown
Contributor

LGTM, thanks for catching and fixing this.

philbogle added a commit that referenced this pull request Oct 25, 2015
Use require_relative to load cookbooks
@philbogle philbogle merged commit cddfa8e into staging Oct 25, 2015
deploy-code-org added a commit that referenced this pull request Oct 26, 2015
a2c918c Merge pull request #4804 from code-dot-org/no_request_forgery (philbogle)
711da5b Merge commit 'a1a312f' into no_request_forgery (Phil Bogle)
cddfa8e Merge pull request #4802 from code-dot-org/require_relative (philbogle)
a1a312f Increase app JS test timeout to reduce flakes (Phil Bogle)
4aae596 Automatically built. (Continuous Integration)
f2e49e9 Merge pull request #4806 from code-dot-org/hoc2015newsounds (Brendan Reville)
@philbogle

Copy link
Copy Markdown
Contributor Author

I am rolling back my change because when I try to run UI tests, Pegasus complains:
`require_relative': cannot infer basepath (LoadError)

I think this is a known bug in ruby; e.g.
Ruby bug #4487: require_relative fails in an eval'ed file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants