Sha256: c3dd0b543b6c3fcb189277e0f9a41cc0c44f9a28bcbdbe3f13d5533619196663
Contents?: true
Size: 1.24 KB
Versions: 24
Compression:
Stored size: 1.24 KB
Contents
require "application_system_test_case" module KepplerFrontend class ParametersTest < ApplicationSystemTestCase setup do @parameter = keppler_frontend_parameters(:one) end test "visiting the index" do visit parameters_url assert_selector "h1", text: "Parameters" end test "creating a Parameter" do visit parameters_url click_on "New Parameter" fill_in "Deleted At", with: @parameter.deleted_at fill_in "Name", with: @parameter.name fill_in "Position", with: @parameter.position click_on "Create Parameter" assert_text "Parameter was successfully created" click_on "Back" end test "updating a Parameter" do visit parameters_url click_on "Edit", match: :first fill_in "Deleted At", with: @parameter.deleted_at fill_in "Name", with: @parameter.name fill_in "Position", with: @parameter.position click_on "Update Parameter" assert_text "Parameter was successfully updated" click_on "Back" end test "destroying a Parameter" do visit parameters_url page.accept_confirm do click_on "Destroy", match: :first end assert_text "Parameter was successfully destroyed" end end end
Version data entries
24 entries across 24 versions & 1 rubygems