Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[helper/render.rb] fixed render_file's sync_variables. see detail:
This line syncs variables from current action to newly created action: action.sync_variables(self.action) but later this line eliminates above effect: action.variables = variables.dup Assume we would like variables from current action, but would like to override (or hide, shadow) them by passing another hash of variables in render_file's second arguments. Then change that line to: action.variables.merge!(variables.dup) spec this behavior in SpecHelperRenderFile.
- Loading branch information