Sha256: 0b4ec77d729a7601f3c4595f13f73db4f97096d93aeab65f645b29dccf0bbc77
Contents?: true
Size: 1.22 KB
Versions: 24
Compression:
Stored size: 1.22 KB
Contents
require "application_system_test_case" module KepplerLanguages class LanguagesTest < ApplicationSystemTestCase setup do @language = keppler_languages_languages(:one) end test "visiting the index" do visit languages_url assert_selector "h1", text: "Languages" end test "creating a Language" do visit languages_url click_on "New Language" fill_in "Deleted At", with: @language.deleted_at fill_in "Name", with: @language.name fill_in "Position", with: @language.position click_on "Create Language" assert_text "Language was successfully created" click_on "Back" end test "updating a Language" do visit languages_url click_on "Edit", match: :first fill_in "Deleted At", with: @language.deleted_at fill_in "Name", with: @language.name fill_in "Position", with: @language.position click_on "Update Language" assert_text "Language was successfully updated" click_on "Back" end test "destroying a Language" do visit languages_url page.accept_confirm do click_on "Destroy", match: :first end assert_text "Language was successfully destroyed" end end end
Version data entries
24 entries across 24 versions & 1 rubygems