fix tests
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user