forked from tildeverse/tilde.news
lint, test for previous
This commit is contained in:
parent
2c688838a4
commit
30295c028a
|
@ -41,7 +41,7 @@ module ApplicationHelper
|
|||
link_to text, path, options
|
||||
end
|
||||
|
||||
def link_post button_label, link, options={}
|
||||
def link_post button_label, link, options = {}
|
||||
options.reverse_merge class_name: nil, confirm: nil
|
||||
render partial: 'helpers/link_post', locals: {
|
||||
button_label: button_label,
|
||||
|
|
|
@ -71,7 +71,7 @@ describe 'stories', type: :request do
|
|||
|
||||
it "increments the user's count of deleted stories" do
|
||||
expect {
|
||||
put "/stories/#{story.short_id}/destroy", params: {
|
||||
patch "/stories/#{story.short_id}/destroy", params: {
|
||||
id: story.short_id,
|
||||
story: {
|
||||
title: story.title,
|
||||
|
@ -88,7 +88,7 @@ describe 'stories', type: :request do
|
|||
|
||||
it "decrements the user's count of deleted stories" do
|
||||
expect {
|
||||
put "/stories/#{deleted_story.short_id}/undelete", params: {
|
||||
patch "/stories/#{deleted_story.short_id}/undelete", params: {
|
||||
id: deleted_story.short_id,
|
||||
story: {
|
||||
title: deleted_story.title,
|
||||
|
|
Loading…
Reference in New Issue