From abcef9115be1de1d5f26d1bba0c52cf7ef547523 Mon Sep 17 00:00:00 2001 From: Albert Yi Date: Fri, 20 Jul 2018 13:52:56 -0700 Subject: [PATCH] fix tests --- app/controllers/wiki_pages_controller.rb | 2 +- test/functional/wiki_pages_controller_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/wiki_pages_controller.rb b/app/controllers/wiki_pages_controller.rb index aedfffc30..5c3eab980 100644 --- a/app/controllers/wiki_pages_controller.rb +++ b/app/controllers/wiki_pages_controller.rb @@ -5,7 +5,7 @@ class WikiPagesController < ApplicationController before_action :normalize_search_params, :only => [:index] def new - @wiki_page = WikiPage.new(wiki_page_params) + @wiki_page = WikiPage.new(wiki_page_create_params) respond_with(@wiki_page) end diff --git a/test/functional/wiki_pages_controller_test.rb b/test/functional/wiki_pages_controller_test.rb index d5f046d9e..45e950d03 100644 --- a/test/functional/wiki_pages_controller_test.rb +++ b/test/functional/wiki_pages_controller_test.rb @@ -126,7 +126,7 @@ class WikiPagesControllerTest < ActionDispatch::IntegrationTest end should "rename a wiki page with a non-empty tag if secondary validations are skipped" do - put_auth wiki_page_path(@wiki_page), @user, params: {:wiki_page => {:title => "bar", :skip_secondary_validations => "1"}} + put_auth wiki_page_path(@wiki_page), @mod, params: {:wiki_page => {:title => "bar", :skip_secondary_validations => "1"}} assert_equal("bar", @wiki_page.reload.title) end