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