class Spec::Rails::Matchers::RenderTemplate
def path_and_file(path)
def path_and_file(path) parts = path.split('/') file = parts.pop controller = parts.empty? ? current_controller_path : parts.join('/') return controller, file end
def path_and_file(path) parts = path.split('/') file = parts.pop controller = parts.empty? ? current_controller_path : parts.join('/') return controller, file end