Skip to content

Add test case for scope with includes#3991

Merged
janmeier merged 1 commit intosequelize:masterfrom
ackerdev:scope-include-tests
Jul 25, 2015
Merged

Add test case for scope with includes#3991
janmeier merged 1 commit intosequelize:masterfrom
ackerdev:scope-include-tests

Conversation

@ackerdev
Copy link
Copy Markdown
Contributor

There seem to be some issues preventing use of includes inside scope definitions. These tests should reproduce the problems.

WIP, I'll be abusing the PR system for travis-ci checking.

@janmeier janmeier self-assigned this Jun 28, 2015
@janmeier
Copy link
Copy Markdown
Member

The problem was that we didn't call conformOptions (converting the include to the form expected later on) when a scope is a function

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing this to .project - the models are stored under their name :)

@janmeier janmeier merged commit 4fecbbc into sequelize:master Jul 25, 2015
janmeier added a commit that referenced this pull request Jul 25, 2015
Add test case for scope with includes
@ackerdev ackerdev deleted the scope-include-tests branch July 28, 2015 18:29
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