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

Fixes to ActionController::TemplateAssertions #16027

Merged
merged 1 commit into from
Aug 14, 2014

Conversation

tgxworld
Copy link
Contributor

@tgxworld tgxworld commented Jul 2, 2014

No description provided.

@tgxworld tgxworld changed the title Fix assert_template not resetting files between request. Fixes to ActionController::TemplateAssertions Jul 23, 2014
@@ -140,6 +147,8 @@ def assert_template(options = {}, message = nil)

if options[:file]
assert_includes @_files.keys, options[:file]
else
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this only happen if I specified the :file option?

elsif options.key?(:file)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah yes you're right. I'll make the changes. Thanks 😄

@tgxworld
Copy link
Contributor Author

@senny updated per your comments.

@senny
Copy link
Member

senny commented Aug 13, 2014

@tgxworld can you squash your commits?

@senny
Copy link
Member

senny commented Aug 13, 2014

this changes behavior, let's also add an entry to the CHANGELOG.

The test was not failing for `assert_template file: nil` when a file
has been rendered.
@tgxworld
Copy link
Contributor Author

@senny Done 😄

senny added a commit that referenced this pull request Aug 14, 2014
Fixes to ActionController::TemplateAssertions
@senny senny merged commit 9c91c16 into rails:master Aug 14, 2014
@senny
Copy link
Member

senny commented Aug 14, 2014

@tgxworld thank you 💛

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.

None yet

3 participants