Sha256: 88583d0e7a96eb9fbf67e65356271f3336f0dd4d5255d9db437ea1d6251e179d
Contents?: true
Size: 1.02 KB
Versions: 5
Compression:
Stored size: 1.02 KB
Contents
require "application_system_test_case" class ApisTest < ApplicationSystemTestCase setup do @api = apis(:one) end test "visiting the index" do visit apis_url assert_selector "h1", text: "Apis" end test "creating a Api" do visit apis_url click_on "New Api" fill_in "Code", with: @api.code_id fill_in "Rfc", with: @api.rfc fill_in "Rftrolling foreign key", with: @api.rftrolling_foreign_key click_on "Create Api" assert_text "Api was successfully created" click_on "Back" end test "updating a Api" do visit apis_url click_on "Edit", match: :first fill_in "Code", with: @api.code_id fill_in "Rfc", with: @api.rfc fill_in "Rftrolling foreign key", with: @api.rftrolling_foreign_key click_on "Update Api" assert_text "Api was successfully updated" click_on "Back" end test "destroying a Api" do visit apis_url page.accept_confirm do click_on "Destroy", match: :first end assert_text "Api was successfully destroyed" end end
Version data entries
5 entries across 5 versions & 2 rubygems