ezii-os 0.0.0.0.1 → 0.0.0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/code_change_requests.scss +3 -0
- data/app/controllers/code_change_requests_controller.rb +75 -0
- data/app/helpers/code_change_requests_helper.rb +2 -0
- data/app/models/code_change_request.rb +2 -0
- data/app/models/wit_ai_parse_model_example.rb +8 -1
- data/app/views/code_change_requests/_code_change_request.json.jbuilder +2 -0
- data/app/views/code_change_requests/_form.html.erb +22 -0
- data/app/views/code_change_requests/edit.html.erb +6 -0
- data/app/views/code_change_requests/index.html.erb +27 -0
- data/app/views/code_change_requests/index.json.jbuilder +1 -0
- data/app/views/code_change_requests/new.html.erb +5 -0
- data/app/views/code_change_requests/show.html.erb +9 -0
- data/app/views/code_change_requests/show.json.jbuilder +1 -0
- data/app/views/ezii_os_files/_wit_ai_widget.html.erb +21 -2
- data/app/views/layouts/application.html.erb +36 -0
- data/config/routes.rb +1 -0
- data/db/development.sqlite3 +0 -0
- data/db/migrate/20190825142553_create_code_change_requests.rb +9 -0
- data/ezii-os-0.0.0.0.1.gem +0 -0
- data/ezii-os.gemspec +1 -1
- data/log/development.log +2026 -0
- data/test/controllers/code_change_requests_controller_test.rb +48 -0
- data/test/fixtures/code_change_requests.yml +7 -0
- data/test/models/code_change_request_test.rb +7 -0
- data/test/system/code_change_requests_test.rb +43 -0
- metadata +19 -1
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CodeChangeRequestsControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@code_change_request = code_change_requests(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get code_change_requests_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_code_change_request_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create code_change_request" do
|
19
|
+
assert_difference('CodeChangeRequest.count') do
|
20
|
+
post code_change_requests_url, params: { code_change_request: { text: @code_change_request.text } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to code_change_request_url(CodeChangeRequest.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show code_change_request" do
|
27
|
+
get code_change_request_url(@code_change_request)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_code_change_request_url(@code_change_request)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update code_change_request" do
|
37
|
+
patch code_change_request_url(@code_change_request), params: { code_change_request: { text: @code_change_request.text } }
|
38
|
+
assert_redirected_to code_change_request_url(@code_change_request)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy code_change_request" do
|
42
|
+
assert_difference('CodeChangeRequest.count', -1) do
|
43
|
+
delete code_change_request_url(@code_change_request)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to code_change_requests_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require "application_system_test_case"
|
2
|
+
|
3
|
+
class CodeChangeRequestsTest < ApplicationSystemTestCase
|
4
|
+
setup do
|
5
|
+
@code_change_request = code_change_requests(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "visiting the index" do
|
9
|
+
visit code_change_requests_url
|
10
|
+
assert_selector "h1", text: "Code Change Requests"
|
11
|
+
end
|
12
|
+
|
13
|
+
test "creating a Code change request" do
|
14
|
+
visit code_change_requests_url
|
15
|
+
click_on "New Code Change Request"
|
16
|
+
|
17
|
+
fill_in "Text", with: @code_change_request.text
|
18
|
+
click_on "Create Code change request"
|
19
|
+
|
20
|
+
assert_text "Code change request was successfully created"
|
21
|
+
click_on "Back"
|
22
|
+
end
|
23
|
+
|
24
|
+
test "updating a Code change request" do
|
25
|
+
visit code_change_requests_url
|
26
|
+
click_on "Edit", match: :first
|
27
|
+
|
28
|
+
fill_in "Text", with: @code_change_request.text
|
29
|
+
click_on "Update Code change request"
|
30
|
+
|
31
|
+
assert_text "Code change request was successfully updated"
|
32
|
+
click_on "Back"
|
33
|
+
end
|
34
|
+
|
35
|
+
test "destroying a Code change request" do
|
36
|
+
visit code_change_requests_url
|
37
|
+
page.accept_confirm do
|
38
|
+
click_on "Destroy", match: :first
|
39
|
+
end
|
40
|
+
|
41
|
+
assert_text "Code change request was successfully destroyed"
|
42
|
+
end
|
43
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezii-os
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.0
|
4
|
+
version: 0.0.0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Arno Korfmann
|
@@ -24,6 +24,7 @@ files:
|
|
24
24
|
- app/assets/config/manifest.js
|
25
25
|
- app/assets/stylesheets/application.css
|
26
26
|
- app/assets/stylesheets/banal_business_testcases.scss
|
27
|
+
- app/assets/stylesheets/code_change_requests.scss
|
27
28
|
- app/assets/stylesheets/directories.scss
|
28
29
|
- app/assets/stylesheets/ezii_integrations.scss
|
29
30
|
- app/assets/stylesheets/ezii_os_files.scss
|
@@ -37,6 +38,7 @@ files:
|
|
37
38
|
- app/channels/application_cable/connection.rb
|
38
39
|
- app/controllers/application_controller.rb
|
39
40
|
- app/controllers/banal_business_testcases_controller.rb
|
41
|
+
- app/controllers/code_change_requests_controller.rb
|
40
42
|
- app/controllers/directories_controller.rb
|
41
43
|
- app/controllers/ezii_integrations_controller.rb
|
42
44
|
- app/controllers/ezii_os_files_controller.rb
|
@@ -47,6 +49,7 @@ files:
|
|
47
49
|
- app/controllers/wit_ai_parse_models_controller.rb
|
48
50
|
- app/helpers/application_helper.rb
|
49
51
|
- app/helpers/banal_business_testcases_helper.rb
|
52
|
+
- app/helpers/code_change_requests_helper.rb
|
50
53
|
- app/helpers/directories_helper.rb
|
51
54
|
- app/helpers/ezii_integrations_helper.rb
|
52
55
|
- app/helpers/ezii_os_files_helper.rb
|
@@ -63,6 +66,7 @@ files:
|
|
63
66
|
- app/models/application_record.rb
|
64
67
|
- app/models/banal_business_testcase.rb
|
65
68
|
- app/models/banal_dropbox_api.rb
|
69
|
+
- app/models/code_change_request.rb
|
66
70
|
- app/models/directory.rb
|
67
71
|
- app/models/dropbox_directory.rb
|
68
72
|
- app/models/ezii_integration.rb
|
@@ -80,6 +84,14 @@ files:
|
|
80
84
|
- app/views/banal_business_testcases/new.html.erb
|
81
85
|
- app/views/banal_business_testcases/show.html.erb
|
82
86
|
- app/views/banal_business_testcases/show.json.jbuilder
|
87
|
+
- app/views/code_change_requests/_code_change_request.json.jbuilder
|
88
|
+
- app/views/code_change_requests/_form.html.erb
|
89
|
+
- app/views/code_change_requests/edit.html.erb
|
90
|
+
- app/views/code_change_requests/index.html.erb
|
91
|
+
- app/views/code_change_requests/index.json.jbuilder
|
92
|
+
- app/views/code_change_requests/new.html.erb
|
93
|
+
- app/views/code_change_requests/show.html.erb
|
94
|
+
- app/views/code_change_requests/show.json.jbuilder
|
83
95
|
- app/views/directories/_directory.json.jbuilder
|
84
96
|
- app/views/directories/_form.html.erb
|
85
97
|
- app/views/directories/edit.html.erb
|
@@ -195,8 +207,10 @@ files:
|
|
195
207
|
- db/migrate/20190819023312_add_fields3_to_wit_ai_parse_model_examples.rb
|
196
208
|
- db/migrate/20190822154127_create_file_systems.rb
|
197
209
|
- db/migrate/20190822174951_create_banal_business_testcases.rb
|
210
|
+
- db/migrate/20190825142553_create_code_change_requests.rb
|
198
211
|
- db/schema.rb
|
199
212
|
- db/seeds.rb
|
213
|
+
- ezii-os-0.0.0.0.1.gem
|
200
214
|
- ezii-os.gemspec
|
201
215
|
- log/development.log
|
202
216
|
- node_modules/@babel/code-frame/LICENSE
|
@@ -14377,6 +14391,7 @@ files:
|
|
14377
14391
|
- test/application_system_test_case.rb
|
14378
14392
|
- test/channels/application_cable/connection_test.rb
|
14379
14393
|
- test/controllers/banal_business_testcases_controller_test.rb
|
14394
|
+
- test/controllers/code_change_requests_controller_test.rb
|
14380
14395
|
- test/controllers/directories_controller_test.rb
|
14381
14396
|
- test/controllers/ezii_integrations_controller_test.rb
|
14382
14397
|
- test/controllers/ezii_os_files_controller_test.rb
|
@@ -14386,6 +14401,7 @@ files:
|
|
14386
14401
|
- test/controllers/wit_ai_parse_model_examples_controller_test.rb
|
14387
14402
|
- test/controllers/wit_ai_parse_models_controller_test.rb
|
14388
14403
|
- test/fixtures/banal_business_testcases.yml
|
14404
|
+
- test/fixtures/code_change_requests.yml
|
14389
14405
|
- test/fixtures/directories.yml
|
14390
14406
|
- test/fixtures/ezii_integrations.yml
|
14391
14407
|
- test/fixtures/ezii_os_files.yml
|
@@ -14394,6 +14410,7 @@ files:
|
|
14394
14410
|
- test/fixtures/wit_ai_parse_model_examples.yml
|
14395
14411
|
- test/fixtures/wit_ai_parse_models.yml
|
14396
14412
|
- test/models/banal_business_testcase_test.rb
|
14413
|
+
- test/models/code_change_request_test.rb
|
14397
14414
|
- test/models/directory_test.rb
|
14398
14415
|
- test/models/ezii_integration_test.rb
|
14399
14416
|
- test/models/ezii_os_file_test.rb
|
@@ -14402,6 +14419,7 @@ files:
|
|
14402
14419
|
- test/models/wit_ai_parse_model_example_test.rb
|
14403
14420
|
- test/models/wit_ai_parse_model_test.rb
|
14404
14421
|
- test/system/banal_business_testcases_test.rb
|
14422
|
+
- test/system/code_change_requests_test.rb
|
14405
14423
|
- test/system/directories_test.rb
|
14406
14424
|
- test/system/ezii_integrations_test.rb
|
14407
14425
|
- test/system/ezii_os_files_test.rb
|