very basic system tests
This commit is contained in:
parent
345a932514
commit
c31d4266cd
12 changed files with 114 additions and 185 deletions
|
|
@ -24,7 +24,7 @@ class SuccessCriteriaController < ApplicationController
|
|||
@success_criterion = SuccessCriterion.new(success_criterion_params)
|
||||
|
||||
if @success_criterion.save
|
||||
redirect_to @success_criterion, notice: 'Success criterion was successfully created.'
|
||||
redirect_to @success_criterion, notice: 'Erfolgskriterium was successfully created.'
|
||||
else
|
||||
render :new, status: :unprocessable_entity
|
||||
end
|
||||
|
|
@ -33,7 +33,7 @@ class SuccessCriteriaController < ApplicationController
|
|||
# PATCH/PUT /success_criteria/1
|
||||
def update
|
||||
if @success_criterion.update(success_criterion_params)
|
||||
redirect_to @success_criterion, notice: 'Success criterion was successfully updated.', status: :see_other
|
||||
redirect_to @success_criterion, notice: 'Erfolgskriterium was successfully updated.', status: :see_other
|
||||
else
|
||||
render :edit, status: :unprocessable_entity
|
||||
end
|
||||
|
|
@ -44,7 +44,7 @@ class SuccessCriteriaController < ApplicationController
|
|||
@success_criterion.destroy!
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
redirect_to success_criteria_url, notice: 'Success criterion was successfully destroyed.', status: :see_other
|
||||
redirect_to success_criteria_url, notice: 'Erfolgskriterium was successfully destroyed.', status: :see_other
|
||||
end
|
||||
format.turbo_stream
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<%= bootstrap_form_with(model: checklist) do |form| %>
|
||||
<%# form.text_field :code %>
|
||||
<%= form.text_field :name %>
|
||||
<%= form.rich_text_area :description_html, rows: 12 %>
|
||||
<%= form.submit %>
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<%= turbo_stream.delete dom_id(@success_criterion) %>
|
||||
<%= turbo_stream.remove dom_id(@success_criterion) %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue