Fix typo showing error message after destroy page

Changelog: fixed
parent 948ecefe
......@@ -177,7 +177,7 @@ module WikiActions
redirect_to wiki_path(wiki),
status: :found
else
@error = response
@error = response.message
render 'shared/wikis/edit'
end
end
......
......@@ -486,7 +486,7 @@ RSpec.shared_examples 'wiki controller actions' do
end.not_to change { wiki.list_pages.size }
expect(response).to render_template('shared/wikis/edit')
expect(assigns(:error).message).to eq('Could not delete wiki page')
expect(assigns(:error)).to eq('Could not delete wiki page')
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment