Sha256: 1b233015e011bec90da3c38aed5fac615787695d5843ba5fd5a24966a11b9ccb
Contents?: true
Size: 1.31 KB
Versions: 7
Compression:
Stored size: 1.31 KB
Contents
require 'test_helper' class FileSystemsControllerTest < ActionDispatch::IntegrationTest setup do @file_system = file_systems(:one) end test "should get index" do get file_systems_url assert_response :success end test "should get new" do get new_file_system_url assert_response :success end test "should create file_system" do assert_difference('FileSystem.count') do post file_systems_url, params: { file_system: { description: @file_system.description, machine_readable_identifier: @file_system.machine_readable_identifier } } end assert_redirected_to file_system_url(FileSystem.last) end test "should show file_system" do get file_system_url(@file_system) assert_response :success end test "should get edit" do get edit_file_system_url(@file_system) assert_response :success end test "should update file_system" do patch file_system_url(@file_system), params: { file_system: { description: @file_system.description, machine_readable_identifier: @file_system.machine_readable_identifier } } assert_redirected_to file_system_url(@file_system) end test "should destroy file_system" do assert_difference('FileSystem.count', -1) do delete file_system_url(@file_system) end assert_redirected_to file_systems_url end end
Version data entries
7 entries across 7 versions & 2 rubygems