more fixes for tests post-merge
This commit is contained in:
@@ -11,7 +11,7 @@ class BenefitFormsController < ApplicationController
|
|||||||
file = params[:type].constantize.new(path)
|
file = params[:type].constantize.new(path)
|
||||||
send_file file, disposition: "attachment"
|
send_file file, disposition: "attachment"
|
||||||
rescue
|
rescue
|
||||||
redirect_to user_benefit_forms_path(user_id: current_user.user_id)
|
redirect_to user_benefit_forms_path(user_id: current_user.id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ class BenefitFormsController < ApplicationController
|
|||||||
else
|
else
|
||||||
flash[:error] = "Something went wrong"
|
flash[:error] = "Something went wrong"
|
||||||
end
|
end
|
||||||
redirect_to user_benefit_forms_path(user_id: current_user.user_id)
|
redirect_to user_benefit_forms_path(user_id: current_user.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ feature "mass assignment" do
|
|||||||
|
|
||||||
login(@normal_user)
|
login(@normal_user)
|
||||||
|
|
||||||
params = {user: {admin: "t",
|
params = { user: { admin: "t",
|
||||||
user_id: @normal_user.id,
|
id: @normal_user.id,
|
||||||
password: @normal_user.clear_password,
|
password: @normal_user.clear_password,
|
||||||
password_confirmation: @normal_user.clear_password}}
|
password_confirmation: @normal_user.clear_password}}
|
||||||
page.driver.put "/users/#{@normal_user.id}.json", params
|
page.driver.put "/users/#{@normal_user.id}.json", params
|
||||||
|
|||||||
Reference in New Issue
Block a user