Sha256: 9b9fe41d3fa86aeb13b496bf14b09f79d2f24fc1500acc759db4cbd5bd259ae4
Contents?: true
Size: 1.37 KB
Versions: 11
Compression:
Stored size: 1.37 KB
Contents
# require "application_system_test_case" # module CensorBear # class ModLogsTest < ApplicationSystemTestCase # setup do # @mod_log = censor_bear_mod_logs(:one) # end # test "visiting the index" do # visit mod_logs_url # assert_selector "h1", text: "Mod Logs" # end # test "creating a Mod log" do # visit mod_logs_url # click_on "New Mod Log" # fill_in "Mod words", with: @mod_log.mod_words # fill_in "Record", with: @mod_log.record_id # fill_in "Record type", with: @mod_log.record_type # fill_in "User", with: @mod_log.user_id # click_on "Create Mod log" # assert_text "Mod log was successfully created" # click_on "Back" # end # test "updating a Mod log" do # visit mod_logs_url # click_on "Edit", match: :first # fill_in "Mod words", with: @mod_log.mod_words # fill_in "Record", with: @mod_log.record_id # fill_in "Record type", with: @mod_log.record_type # fill_in "User", with: @mod_log.user_id # click_on "Update Mod log" # assert_text "Mod log was successfully updated" # click_on "Back" # end # test "destroying a Mod log" do # visit mod_logs_url # page.accept_confirm do # click_on "Destroy", match: :first # end # assert_text "Mod log was successfully destroyed" # end # end # end
Version data entries
11 entries across 11 versions & 1 rubygems