created template selecting
This commit is contained in:
49
web/test/controllers/configuration_files_controller_test.rb
Normal file
49
web/test/controllers/configuration_files_controller_test.rb
Normal file
@@ -0,0 +1,49 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ConfigurationFilesControllerTest < ActionController::TestCase
|
||||
setup do
|
||||
@configuration_file = configuration_files(:one)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:configuration_files)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create configuration_file" do
|
||||
assert_difference('ConfigurationFile.count') do
|
||||
post :create, configuration_file: { }
|
||||
end
|
||||
|
||||
assert_redirected_to configuration_file_path(assigns(:configuration_file))
|
||||
end
|
||||
|
||||
test "should show configuration_file" do
|
||||
get :show, id: @configuration_file
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, id: @configuration_file
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update configuration_file" do
|
||||
patch :update, id: @configuration_file, configuration_file: { }
|
||||
assert_redirected_to configuration_file_path(assigns(:configuration_file))
|
||||
end
|
||||
|
||||
test "should destroy configuration_file" do
|
||||
assert_difference('ConfigurationFile.count', -1) do
|
||||
delete :destroy, id: @configuration_file
|
||||
end
|
||||
|
||||
assert_redirected_to configuration_files_path
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,49 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ConfigurationTemplatesControllerTest < ActionController::TestCase
|
||||
setup do
|
||||
@configuration_template = configuration_templates(:one)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:configuration_templates)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create configuration_template" do
|
||||
assert_difference('ConfigurationTemplate.count') do
|
||||
post :create, configuration_template: { }
|
||||
end
|
||||
|
||||
assert_redirected_to configuration_template_path(assigns(:configuration_template))
|
||||
end
|
||||
|
||||
test "should show configuration_template" do
|
||||
get :show, id: @configuration_template
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, id: @configuration_template
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update configuration_template" do
|
||||
patch :update, id: @configuration_template, configuration_template: { }
|
||||
assert_redirected_to configuration_template_path(assigns(:configuration_template))
|
||||
end
|
||||
|
||||
test "should destroy configuration_template" do
|
||||
assert_difference('ConfigurationTemplate.count', -1) do
|
||||
delete :destroy, id: @configuration_template
|
||||
end
|
||||
|
||||
assert_redirected_to configuration_templates_path
|
||||
end
|
||||
end
|
||||
49
web/test/controllers/file_types_controller_test.rb
Normal file
49
web/test/controllers/file_types_controller_test.rb
Normal file
@@ -0,0 +1,49 @@
|
||||
require 'test_helper'
|
||||
|
||||
class FileTypesControllerTest < ActionController::TestCase
|
||||
setup do
|
||||
@file_type = file_types(:one)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:file_types)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create file_type" do
|
||||
assert_difference('FileType.count') do
|
||||
post :create, file_type: { }
|
||||
end
|
||||
|
||||
assert_redirected_to file_type_path(assigns(:file_type))
|
||||
end
|
||||
|
||||
test "should show file_type" do
|
||||
get :show, id: @file_type
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, id: @file_type
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update file_type" do
|
||||
patch :update, id: @file_type, file_type: { }
|
||||
assert_redirected_to file_type_path(assigns(:file_type))
|
||||
end
|
||||
|
||||
test "should destroy file_type" do
|
||||
assert_difference('FileType.count', -1) do
|
||||
delete :destroy, id: @file_type
|
||||
end
|
||||
|
||||
assert_redirected_to file_types_path
|
||||
end
|
||||
end
|
||||
49
web/test/controllers/file_versions_controller_test.rb
Normal file
49
web/test/controllers/file_versions_controller_test.rb
Normal file
@@ -0,0 +1,49 @@
|
||||
require 'test_helper'
|
||||
|
||||
class FileVersionsControllerTest < ActionController::TestCase
|
||||
setup do
|
||||
@file_version = file_versions(:one)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:file_versions)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create file_version" do
|
||||
assert_difference('FileVersion.count') do
|
||||
post :create, file_version: { }
|
||||
end
|
||||
|
||||
assert_redirected_to file_version_path(assigns(:file_version))
|
||||
end
|
||||
|
||||
test "should show file_version" do
|
||||
get :show, id: @file_version
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, id: @file_version
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update file_version" do
|
||||
patch :update, id: @file_version, file_version: { }
|
||||
assert_redirected_to file_version_path(assigns(:file_version))
|
||||
end
|
||||
|
||||
test "should destroy file_version" do
|
||||
assert_difference('FileVersion.count', -1) do
|
||||
delete :destroy, id: @file_version
|
||||
end
|
||||
|
||||
assert_redirected_to file_versions_path
|
||||
end
|
||||
end
|
||||
11
web/test/fixtures/configuration_files.yml
vendored
Normal file
11
web/test/fixtures/configuration_files.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
one: {}
|
||||
# column: value
|
||||
#
|
||||
two: {}
|
||||
# column: value
|
||||
11
web/test/fixtures/configuration_templates.yml
vendored
Normal file
11
web/test/fixtures/configuration_templates.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
one: {}
|
||||
# column: value
|
||||
#
|
||||
two: {}
|
||||
# column: value
|
||||
11
web/test/fixtures/file_types.yml
vendored
Normal file
11
web/test/fixtures/file_types.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
one: {}
|
||||
# column: value
|
||||
#
|
||||
two: {}
|
||||
# column: value
|
||||
11
web/test/fixtures/file_versions.yml
vendored
Normal file
11
web/test/fixtures/file_versions.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
one: {}
|
||||
# column: value
|
||||
#
|
||||
two: {}
|
||||
# column: value
|
||||
7
web/test/models/configuration_file_test.rb
Normal file
7
web/test/models/configuration_file_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ConfigurationFileTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
web/test/models/configuration_template_test.rb
Normal file
7
web/test/models/configuration_template_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ConfigurationTemplateTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
web/test/models/file_type_test.rb
Normal file
7
web/test/models/file_type_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class FileTypeTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
web/test/models/file_version_test.rb
Normal file
7
web/test/models/file_version_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class FileVersionTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
Reference in New Issue
Block a user