fix tests

This commit is contained in:
Albert Yi
2018-07-20 13:52:56 -07:00
parent f75e0903e8
commit abcef9115b
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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