Skip to content
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

Testing EPF on ember-cli? #133

Open
yaymukund opened this issue May 21, 2014 · 6 comments
Open

Testing EPF on ember-cli? #133

yaymukund opened this issue May 21, 2014 · 6 comments

Comments

@yaymukund
Copy link
Contributor

It looks like ember-cli calls DS._setupContainer to setup tests. Is there a recommended way to do this with EPF yet?

@ghempton
Copy link
Contributor

There is an equivalent epf method: Ep.setupContainer
On May 21, 2014 9:23 AM, "Mukund Lakshman" [email protected] wrote:

It looks like ember-cli calls DS._setupContainer to setup testshttps://github.com/rpflorence/ember-qunit/blob/master/lib/module-for-model.js#L4-29.
Is there a recommended way to do this with EPF yet?


Reply to this email directly or view it on GitHubhttps://github.com//issues/133
.

@devmanhinton
Copy link

Great! I'm setting up EPF w/ ember-qunit & Ember-Cli

In ember-qunit moduleForModel

I replaced the call to DS._setupContainer with Ep.setupContainer. Running tests then throws
'undefined' is not an object (evaluating 'Ep.__container__.lookupFactory')

My solution is to manually set Ep.__container__ which works

      Ep.setupContainer(container);
      Ep.__container__ = container;

Is this expected behavior?

@ghempton
Copy link
Contributor

This makes sense. Soon I am going to be removing the need to set
Ep.container in tests.

On Fri, May 23, 2014 at 8:23 AM, Devon Hinton [email protected]:

Great! I'm setting up EPF w/ ember-qunit & Ember-Cli

In ember-qunit moduleForModelhttps://github.com/rpflorence/ember-qunit/blob/master/lib/module-for-model.js

I replaced the call to DS.
_setupContainer with Ep.setupContainer. Running tests then throws
'undefined' is not an object (evaluating 'Ep.__container__ .lookupFactory')

My solution is to manually set Ep.container which works

  Ep.setupContainer(container);
  Ep.__container__ = container;

Is this expected behavior?


Reply to this email directly or view it on GitHubhttps://github.com//issues/133#issuecomment-44025100
.

Gordon L. Hempton
http://codebrief.com
360.460.8098

@devmanhinton
Copy link

Ah Cool, thanks for responding 😄

@Genkilabs
Copy link

@devmanhinton Did you ever get EPF set up and working with ember-cli? I have been trying various ways to include it from the bower build 0.3.5 with no luck. Lots of undefined errors...
It looks as though there are others interested in this as well: #138

@devmanhinton
Copy link

Hmmmm @Genkilabs We did get EPF working w/ ember-cli (though we never got around to specs before the project had to be released). @yaymukund did a lot of this setup -- perhaps he remembers more of the steps?

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

No branches or pull requests

4 participants