• E
    Refactor how assign_parameters sets generated_path & query_string_keys · f6232a51
    eileencodes 提交于
    This is part of a larger refactoring on controller tests. We needed to
    move these methods here so that we could get rid of the `|| key ==
    :action || key == :controller` in `assign_parameters`. We know this is
    ugly and intend to fix it but for now `generate_extras` needs to be used
    in the two methods to access the path and the query_string_keys.
    
    We're adding `:controller` and `:action` to the `query_string_keys`
    because we always need a controller and action. If someone passed
    `action` or `controller` in in there test they are unambigious - we
    know they have to go into the query params.
    f6232a51
test_case.rb 21.3 KB