ezii-os 0.0.0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Icon/r +0 -0
- data/app/assets/stylesheets/apis.scss +3 -0
- data/app/assets/stylesheets/basecamp_integrations.scss +3 -0
- data/app/assets/stylesheets/code_link_batches.scss +3 -0
- data/app/assets/stylesheets/code_link_types.scss +3 -0
- data/app/assets/stylesheets/code_links.scss +3 -0
- data/app/assets/stylesheets/codes.scss +3 -0
- data/app/assets/stylesheets/cookie_changes.scss +3 -0
- data/app/assets/stylesheets/partners/get_paids.scss +3 -0
- data/app/assets/stylesheets/searches.scss +3 -0
- data/app/assets/stylesheets/types.scss +3 -0
- data/app/controllers/apis_controller.rb +74 -0
- data/app/controllers/basecamp_integrations_controller.rb +76 -0
- data/app/controllers/code_link_batches_controller.rb +74 -0
- data/app/controllers/code_link_types_controller.rb +74 -0
- data/app/controllers/code_links_controller.rb +74 -0
- data/app/controllers/codes_controller.rb +74 -0
- data/app/controllers/cookie_changes_controller.rb +78 -0
- data/app/controllers/directories_controller.rb +14 -14
- data/app/controllers/ezii_os_files_controller.rb +14 -1
- data/app/controllers/partners/get_paids_controller.rb +74 -0
- data/app/controllers/searches_controller.rb +74 -0
- data/app/controllers/types_controller.rb +74 -0
- data/app/helpers/apis_helper.rb +2 -0
- data/app/helpers/basecamp_integrations_helper.rb +2 -0
- data/app/helpers/code_link_batches_helper.rb +2 -0
- data/app/helpers/code_link_types_helper.rb +2 -0
- data/app/helpers/code_links_helper.rb +2 -0
- data/app/helpers/codes_helper.rb +2 -0
- data/app/helpers/cookie_changes_helper.rb +2 -0
- data/app/helpers/partners/get_paids_helper.rb +2 -0
- data/app/helpers/searches_helper.rb +2 -0
- data/app/helpers/types_helper.rb +2 -0
- data/app/models/api.rb +3 -0
- data/app/models/basecamp_integration.rb +2 -0
- data/app/models/code.rb +3 -0
- data/app/models/code_link.rb +3 -0
- data/app/models/code_link_batch.rb +3 -0
- data/app/models/code_link_type.rb +3 -0
- data/app/models/cookie_change.rb +2 -0
- data/app/models/partners/get_paid.rb +2 -0
- data/app/models/partners.rb +5 -0
- data/app/models/search.rb +2 -0
- data/app/models/type.rb +3 -0
- data/app/views/apis/_api.json.jbuilder +2 -0
- data/app/views/apis/_form.html.erb +32 -0
- data/app/views/apis/edit.html.erb +6 -0
- data/app/views/apis/index.html.erb +31 -0
- data/app/views/apis/index.json.jbuilder +1 -0
- data/app/views/apis/new.html.erb +5 -0
- data/app/views/apis/show.html.erb +19 -0
- data/app/views/apis/show.json.jbuilder +1 -0
- data/app/views/basecamp_integrations/_basecamp_integration.json.jbuilder +2 -0
- data/app/views/basecamp_integrations/_form.html.erb +27 -0
- data/app/views/basecamp_integrations/edit.html.erb +6 -0
- data/app/views/basecamp_integrations/index.html.erb +29 -0
- data/app/views/basecamp_integrations/index.json.jbuilder +1 -0
- data/app/views/basecamp_integrations/new.html.erb +5 -0
- data/app/views/basecamp_integrations/show.html.erb +14 -0
- data/app/views/basecamp_integrations/show.json.jbuilder +1 -0
- data/app/views/code_link_batches/_code_link_batch.json.jbuilder +2 -0
- data/app/views/code_link_batches/_form.html.erb +27 -0
- data/app/views/code_link_batches/edit.html.erb +6 -0
- data/app/views/code_link_batches/index.html.erb +29 -0
- data/app/views/code_link_batches/index.json.jbuilder +1 -0
- data/app/views/code_link_batches/new.html.erb +5 -0
- data/app/views/code_link_batches/show.html.erb +14 -0
- data/app/views/code_link_batches/show.json.jbuilder +1 -0
- data/app/views/code_link_types/_code_link_type.json.jbuilder +2 -0
- data/app/views/code_link_types/_form.html.erb +27 -0
- data/app/views/code_link_types/edit.html.erb +6 -0
- data/app/views/code_link_types/index.html.erb +29 -0
- data/app/views/code_link_types/index.json.jbuilder +1 -0
- data/app/views/code_link_types/new.html.erb +5 -0
- data/app/views/code_link_types/show.html.erb +14 -0
- data/app/views/code_link_types/show.json.jbuilder +1 -0
- data/app/views/code_links/_code_link.json.jbuilder +2 -0
- data/app/views/code_links/_form.html.erb +32 -0
- data/app/views/code_links/edit.html.erb +6 -0
- data/app/views/code_links/index.html.erb +31 -0
- data/app/views/code_links/index.json.jbuilder +1 -0
- data/app/views/code_links/new.html.erb +5 -0
- data/app/views/code_links/show.html.erb +19 -0
- data/app/views/code_links/show.json.jbuilder +1 -0
- data/app/views/codes/_code.json.jbuilder +2 -0
- data/app/views/codes/_form.html.erb +32 -0
- data/app/views/codes/edit.html.erb +6 -0
- data/app/views/codes/index.html.erb +31 -0
- data/app/views/codes/index.json.jbuilder +1 -0
- data/app/views/codes/new.html.erb +5 -0
- data/app/views/codes/show.html.erb +19 -0
- data/app/views/codes/show.json.jbuilder +1 -0
- data/app/views/cookie_changes/_cookie_change.json.jbuilder +2 -0
- data/app/views/cookie_changes/_form.html.erb +27 -0
- data/app/views/cookie_changes/edit.html.erb +6 -0
- data/app/views/cookie_changes/index.html.erb +29 -0
- data/app/views/cookie_changes/index.json.jbuilder +1 -0
- data/app/views/cookie_changes/new.html.erb +5 -0
- data/app/views/cookie_changes/show.html.erb +14 -0
- data/app/views/cookie_changes/show.json.jbuilder +1 -0
- data/app/views/directories/show.html.erb +6 -1
- data/app/views/ezii_os_files/_wit_ai_widget.html.erb +203 -49
- data/app/views/ezii_os_files/show.html.erb +6 -9
- data/app/views/layouts/application.html.erb +212 -52
- data/app/views/partners/get_paids/_form.html.erb +27 -0
- data/app/views/partners/get_paids/_partners_get_paid.json.jbuilder +2 -0
- data/app/views/partners/get_paids/edit.html.erb +6 -0
- data/app/views/partners/get_paids/index.html.erb +29 -0
- data/app/views/partners/get_paids/index.json.jbuilder +1 -0
- data/app/views/partners/get_paids/new.html.erb +5 -0
- data/app/views/partners/get_paids/show.html.erb +14 -0
- data/app/views/partners/get_paids/show.json.jbuilder +1 -0
- data/app/views/searches/_form.html.erb +22 -0
- data/app/views/searches/_search.json.jbuilder +2 -0
- data/app/views/searches/edit.html.erb +6 -0
- data/app/views/searches/index.html.erb +27 -0
- data/app/views/searches/index.json.jbuilder +1 -0
- data/app/views/searches/new.html.erb +5 -0
- data/app/views/searches/show.html.erb +9 -0
- data/app/views/searches/show.json.jbuilder +1 -0
- data/app/views/types/_form.html.erb +22 -0
- data/app/views/types/_type.json.jbuilder +2 -0
- data/app/views/types/edit.html.erb +6 -0
- data/app/views/types/index.html.erb +27 -0
- data/app/views/types/index.json.jbuilder +1 -0
- data/app/views/types/new.html.erb +5 -0
- data/app/views/types/show.html.erb +9 -0
- data/app/views/types/show.json.jbuilder +1 -0
- data/config/credentials.yml.enc +1 -1
- data/config/routes.rb +12 -0
- data/db/development.sqlite3 +0 -0
- data/db/migrate/20190827060151_create_searches.rb +9 -0
- data/db/migrate/20190827063427_create_partners_get_paids.rb +10 -0
- data/db/migrate/20190827180750_create_basecamp_integrations.rb +10 -0
- data/db/migrate/20190827180751_create_types.rb +9 -0
- data/db/migrate/20190827180752_create_code_link_types.rb +10 -0
- data/db/migrate/20190827180753_create_code_links.rb +11 -0
- data/db/migrate/20190827180754_create_codes.rb +11 -0
- data/db/migrate/20190828104427_create_apis.rb +12 -0
- data/db/migrate/20190828105156_create_code_link_batches.rb +10 -0
- data/db/migrate/20190829174432_create_cookie_changes.rb +10 -0
- data/db/schema.rb +88 -1
- data/db/seeds.rb +4 -0
- data/db/test.sqlite3 +0 -0
- data/ezii-os-0.0.0.1.0.gem +0 -0
- data/ezii-os.gemspec +1 -1
- data/lib/tasks/task.rake +5 -0
- data/log/development.log +13283 -0
- data/test/controllers/apis_controller_test.rb +48 -0
- data/test/controllers/basecamp_integrations_controller_test.rb +48 -0
- data/test/controllers/code_link_batches_controller_test.rb +48 -0
- data/test/controllers/code_link_types_controller_test.rb +48 -0
- data/test/controllers/code_links_controller_test.rb +48 -0
- data/test/controllers/codes_controller_test.rb +48 -0
- data/test/controllers/cookie_changes_controller_test.rb +48 -0
- data/test/controllers/partners/get_paids_controller_test.rb +48 -0
- data/test/controllers/searches_controller_test.rb +48 -0
- data/test/controllers/types_controller_test.rb +48 -0
- data/test/fixtures/apis.yml +11 -0
- data/test/fixtures/basecamp_integrations.yml +9 -0
- data/test/fixtures/code_link_batches.yml +9 -0
- data/test/fixtures/code_link_types.yml +9 -0
- data/test/fixtures/code_links.yml +11 -0
- data/test/fixtures/codes.yml +11 -0
- data/test/fixtures/cookie_changes.yml +9 -0
- data/test/fixtures/partners/get_paids.yml +9 -0
- data/test/fixtures/searches.yml +7 -0
- data/test/fixtures/types.yml +7 -0
- data/test/models/api_test.rb +7 -0
- data/test/models/basecamp_integration_test.rb +7 -0
- data/test/models/code_link_batch_test.rb +7 -0
- data/test/models/code_link_test.rb +7 -0
- data/test/models/code_link_type_test.rb +7 -0
- data/test/models/code_test.rb +7 -0
- data/test/models/cookie_change_test.rb +7 -0
- data/test/models/partners/get_paid_test.rb +7 -0
- data/test/models/search_test.rb +7 -0
- data/test/models/type_test.rb +7 -0
- data/test/system/apis_test.rb +47 -0
- data/test/system/basecamp_integrations_test.rb +45 -0
- data/test/system/code_link_batches_test.rb +45 -0
- data/test/system/code_link_types_test.rb +45 -0
- data/test/system/code_links_test.rb +47 -0
- data/test/system/codes_test.rb +47 -0
- data/test/system/cookie_changes_test.rb +45 -0
- data/test/system/partners/get_paids_test.rb +45 -0
- data/test/system/searches_test.rb +43 -0
- data/test/system/types_test.rb +43 -0
- metadata +176 -1
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class ApisControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@api = apis(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get apis_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_api_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create api" do
|
19
|
+
assert_difference('Api.count') do
|
20
|
+
post apis_url, params: { api: { code_id: @api.code_id, rfc: @api.rfc, rftrolling_foreign_key: @api.rftrolling_foreign_key } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to api_url(Api.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show api" do
|
27
|
+
get api_url(@api)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_api_url(@api)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update api" do
|
37
|
+
patch api_url(@api), params: { api: { code_id: @api.code_id, rfc: @api.rfc, rftrolling_foreign_key: @api.rftrolling_foreign_key } }
|
38
|
+
assert_redirected_to api_url(@api)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy api" do
|
42
|
+
assert_difference('Api.count', -1) do
|
43
|
+
delete api_url(@api)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to apis_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class BasecampIntegrationsControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@basecamp_integration = basecamp_integrations(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get basecamp_integrations_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_basecamp_integration_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create basecamp_integration" do
|
19
|
+
assert_difference('BasecampIntegration.count') do
|
20
|
+
post basecamp_integrations_url, params: { basecamp_integration: { code: @basecamp_integration.code, description: @basecamp_integration.description } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to basecamp_integration_url(BasecampIntegration.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show basecamp_integration" do
|
27
|
+
get basecamp_integration_url(@basecamp_integration)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_basecamp_integration_url(@basecamp_integration)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update basecamp_integration" do
|
37
|
+
patch basecamp_integration_url(@basecamp_integration), params: { basecamp_integration: { code: @basecamp_integration.code, description: @basecamp_integration.description } }
|
38
|
+
assert_redirected_to basecamp_integration_url(@basecamp_integration)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy basecamp_integration" do
|
42
|
+
assert_difference('BasecampIntegration.count', -1) do
|
43
|
+
delete basecamp_integration_url(@basecamp_integration)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to basecamp_integrations_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CodeLinkBatchesControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@code_link_batch = code_link_batches(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get code_link_batches_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_code_link_batch_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create code_link_batch" do
|
19
|
+
assert_difference('CodeLinkBatch.count') do
|
20
|
+
post code_link_batches_url, params: { code_link_batch: { code_link_id: @code_link_batch.code_link_id, description: @code_link_batch.description } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to code_link_batch_url(CodeLinkBatch.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show code_link_batch" do
|
27
|
+
get code_link_batch_url(@code_link_batch)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_code_link_batch_url(@code_link_batch)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update code_link_batch" do
|
37
|
+
patch code_link_batch_url(@code_link_batch), params: { code_link_batch: { code_link_id: @code_link_batch.code_link_id, description: @code_link_batch.description } }
|
38
|
+
assert_redirected_to code_link_batch_url(@code_link_batch)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy code_link_batch" do
|
42
|
+
assert_difference('CodeLinkBatch.count', -1) do
|
43
|
+
delete code_link_batch_url(@code_link_batch)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to code_link_batches_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CodeLinkTypesControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@code_link_type = code_link_types(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get code_link_types_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_code_link_type_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create code_link_type" do
|
19
|
+
assert_difference('CodeLinkType.count') do
|
20
|
+
post code_link_types_url, params: { code_link_type: { type_description: @code_link_type.type_description, type_id: @code_link_type.type_id } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to code_link_type_url(CodeLinkType.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show code_link_type" do
|
27
|
+
get code_link_type_url(@code_link_type)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_code_link_type_url(@code_link_type)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update code_link_type" do
|
37
|
+
patch code_link_type_url(@code_link_type), params: { code_link_type: { type_description: @code_link_type.type_description, type_id: @code_link_type.type_id } }
|
38
|
+
assert_redirected_to code_link_type_url(@code_link_type)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy code_link_type" do
|
42
|
+
assert_difference('CodeLinkType.count', -1) do
|
43
|
+
delete code_link_type_url(@code_link_type)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to code_link_types_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CodeLinksControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@code_link = code_links(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get code_links_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_code_link_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create code_link" do
|
19
|
+
assert_difference('CodeLink.count') do
|
20
|
+
post code_links_url, params: { code_link: { code_link_type_id: @code_link.code_link_type_id, description: @code_link.description, link: @code_link.link } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to code_link_url(CodeLink.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show code_link" do
|
27
|
+
get code_link_url(@code_link)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_code_link_url(@code_link)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update code_link" do
|
37
|
+
patch code_link_url(@code_link), params: { code_link: { code_link_type_id: @code_link.code_link_type_id, description: @code_link.description, link: @code_link.link } }
|
38
|
+
assert_redirected_to code_link_url(@code_link)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy code_link" do
|
42
|
+
assert_difference('CodeLink.count', -1) do
|
43
|
+
delete code_link_url(@code_link)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to code_links_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CodesControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@code = codes(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get codes_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_code_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create code" do
|
19
|
+
assert_difference('Code.count') do
|
20
|
+
post codes_url, params: { code: { code_links_id: @code.code_links_id, gist_link: @code.gist_link, github_link: @code.github_link } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to code_url(Code.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show code" do
|
27
|
+
get code_url(@code)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_code_url(@code)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update code" do
|
37
|
+
patch code_url(@code), params: { code: { code_links_id: @code.code_links_id, gist_link: @code.gist_link, github_link: @code.github_link } }
|
38
|
+
assert_redirected_to code_url(@code)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy code" do
|
42
|
+
assert_difference('Code.count', -1) do
|
43
|
+
delete code_url(@code)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to codes_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CookieChangesControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@cookie_change = cookie_changes(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get cookie_changes_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_cookie_change_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create cookie_change" do
|
19
|
+
assert_difference('CookieChange.count') do
|
20
|
+
post cookie_changes_url, params: { cookie_change: { identifier: @cookie_change.identifier, value: @cookie_change.value } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to cookie_change_url(CookieChange.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show cookie_change" do
|
27
|
+
get cookie_change_url(@cookie_change)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_cookie_change_url(@cookie_change)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update cookie_change" do
|
37
|
+
patch cookie_change_url(@cookie_change), params: { cookie_change: { identifier: @cookie_change.identifier, value: @cookie_change.value } }
|
38
|
+
assert_redirected_to cookie_change_url(@cookie_change)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy cookie_change" do
|
42
|
+
assert_difference('CookieChange.count', -1) do
|
43
|
+
delete cookie_change_url(@cookie_change)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to cookie_changes_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class Partners::GetPaidsControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@partners_get_paid = partners_get_paids(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get partners_get_paids_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_partners_get_paid_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create partners_get_paid" do
|
19
|
+
assert_difference('Partners::GetPaid.count') do
|
20
|
+
post partners_get_paids_url, params: { partners_get_paid: { enter_invoice_number: @partners_get_paid.enter_invoice_number, you_will_receive_this_when_question_mark: @partners_get_paid.you_will_receive_this_when_question_mark } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to partners_get_paid_url(Partners::GetPaid.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show partners_get_paid" do
|
27
|
+
get partners_get_paid_url(@partners_get_paid)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_partners_get_paid_url(@partners_get_paid)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update partners_get_paid" do
|
37
|
+
patch partners_get_paid_url(@partners_get_paid), params: { partners_get_paid: { enter_invoice_number: @partners_get_paid.enter_invoice_number, you_will_receive_this_when_question_mark: @partners_get_paid.you_will_receive_this_when_question_mark } }
|
38
|
+
assert_redirected_to partners_get_paid_url(@partners_get_paid)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy partners_get_paid" do
|
42
|
+
assert_difference('Partners::GetPaid.count', -1) do
|
43
|
+
delete partners_get_paid_url(@partners_get_paid)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to partners_get_paids_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SearchesControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@search = searches(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get searches_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_search_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create search" do
|
19
|
+
assert_difference('Search.count') do
|
20
|
+
post searches_url, params: { search: { query: @search.query } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to search_url(Search.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show search" do
|
27
|
+
get search_url(@search)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_search_url(@search)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update search" do
|
37
|
+
patch search_url(@search), params: { search: { query: @search.query } }
|
38
|
+
assert_redirected_to search_url(@search)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy search" do
|
42
|
+
assert_difference('Search.count', -1) do
|
43
|
+
delete search_url(@search)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to searches_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TypesControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@type = types(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get types_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_type_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create type" do
|
19
|
+
assert_difference('Type.count') do
|
20
|
+
post types_url, params: { type: { code_id: @type.code_id } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to type_url(Type.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show type" do
|
27
|
+
get type_url(@type)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_type_url(@type)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update type" do
|
37
|
+
patch type_url(@type), params: { type: { code_id: @type.code_id } }
|
38
|
+
assert_redirected_to type_url(@type)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy type" do
|
42
|
+
assert_difference('Type.count', -1) do
|
43
|
+
delete type_url(@type)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to types_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
enter_invoice_number: 1
|
5
|
+
you_will_receive_this_when_question_mark: MyString
|
6
|
+
|
7
|
+
two:
|
8
|
+
enter_invoice_number: 1
|
9
|
+
you_will_receive_this_when_question_mark: MyString
|