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

Fix dependency tracker bug #19074

Merged
merged 1 commit into from
Feb 25, 2015
Merged

Fix dependency tracker bug #19074

merged 1 commit into from
Feb 25, 2015

Conversation

Mession
Copy link
Contributor

@Mession Mession commented Feb 25, 2015

Fixed a dependency tracker bug that caused template dependencies not count layouts as dependencies for partials.

template = FakeTemplate.new("<%# render partial: 'messages/show', layout: 'messages/layout' %>", :erb)
tracker = make_tracker("multiple/_dependencies", template)

assert_equal ["messages/layout", "messages/show"], tracker.dependencies
assert_equal ["messages/show", "messages/layout"], tracker.dependencies
Copy link
Member

Choose a reason for hiding this comment

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

Does this test fail with your change or are you just changing the test to match your change? If it's the former - I think both ways would need to pass. If it's the latter let's leave the original test as is and create a second test. Let me know if I am not understanding the issue as it's very early where I am 😉 ☕

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eileencodes I changed my code to work with the original test.

@rafaelfranca
Copy link
Member

Is this related to any issue? Just to know if the issue will be closed

@Mession
Copy link
Contributor Author

Mession commented Feb 25, 2015

I'm not sure, I don't think so. I found it by searching for 'FIXME' inside Rails source code.

@rafaelfranca
Copy link
Member

Right. Thanks

rafaelfranca added a commit that referenced this pull request Feb 25, 2015
…plate_partial_with_layout

Fix dependency tracker bug
@rafaelfranca rafaelfranca merged commit d6c34ce into rails:master Feb 25, 2015
@Mession Mession deleted the fix_test_dependency_of_erb_template_partial_with_layout branch February 25, 2015 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants