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,47 @@
|
|
1
|
+
require "application_system_test_case"
|
2
|
+
|
3
|
+
class ApisTest < ApplicationSystemTestCase
|
4
|
+
setup do
|
5
|
+
@api = apis(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "visiting the index" do
|
9
|
+
visit apis_url
|
10
|
+
assert_selector "h1", text: "Apis"
|
11
|
+
end
|
12
|
+
|
13
|
+
test "creating a Api" do
|
14
|
+
visit apis_url
|
15
|
+
click_on "New Api"
|
16
|
+
|
17
|
+
fill_in "Code", with: @api.code_id
|
18
|
+
fill_in "Rfc", with: @api.rfc
|
19
|
+
fill_in "Rftrolling foreign key", with: @api.rftrolling_foreign_key
|
20
|
+
click_on "Create Api"
|
21
|
+
|
22
|
+
assert_text "Api was successfully created"
|
23
|
+
click_on "Back"
|
24
|
+
end
|
25
|
+
|
26
|
+
test "updating a Api" do
|
27
|
+
visit apis_url
|
28
|
+
click_on "Edit", match: :first
|
29
|
+
|
30
|
+
fill_in "Code", with: @api.code_id
|
31
|
+
fill_in "Rfc", with: @api.rfc
|
32
|
+
fill_in "Rftrolling foreign key", with: @api.rftrolling_foreign_key
|
33
|
+
click_on "Update Api"
|
34
|
+
|
35
|
+
assert_text "Api was successfully updated"
|
36
|
+
click_on "Back"
|
37
|
+
end
|
38
|
+
|
39
|
+
test "destroying a Api" do
|
40
|
+
visit apis_url
|
41
|
+
page.accept_confirm do
|
42
|
+
click_on "Destroy", match: :first
|
43
|
+
end
|
44
|
+
|
45
|
+
assert_text "Api was successfully destroyed"
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require "application_system_test_case"
|
2
|
+
|
3
|
+
class BasecampIntegrationsTest < ApplicationSystemTestCase
|
4
|
+
setup do
|
5
|
+
@basecamp_integration = basecamp_integrations(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "visiting the index" do
|
9
|
+
visit basecamp_integrations_url
|
10
|
+
assert_selector "h1", text: "Basecamp Integrations"
|
11
|
+
end
|
12
|
+
|
13
|
+
test "creating a Basecamp integration" do
|
14
|
+
visit basecamp_integrations_url
|
15
|
+
click_on "New Basecamp Integration"
|
16
|
+
|
17
|
+
fill_in "Code", with: @basecamp_integration.code
|
18
|
+
fill_in "Description", with: @basecamp_integration.description
|
19
|
+
click_on "Create Basecamp integration"
|
20
|
+
|
21
|
+
assert_text "Basecamp integration was successfully created"
|
22
|
+
click_on "Back"
|
23
|
+
end
|
24
|
+
|
25
|
+
test "updating a Basecamp integration" do
|
26
|
+
visit basecamp_integrations_url
|
27
|
+
click_on "Edit", match: :first
|
28
|
+
|
29
|
+
fill_in "Code", with: @basecamp_integration.code
|
30
|
+
fill_in "Description", with: @basecamp_integration.description
|
31
|
+
click_on "Update Basecamp integration"
|
32
|
+
|
33
|
+
assert_text "Basecamp integration was successfully updated"
|
34
|
+
click_on "Back"
|
35
|
+
end
|
36
|
+
|
37
|
+
test "destroying a Basecamp integration" do
|
38
|
+
visit basecamp_integrations_url
|
39
|
+
page.accept_confirm do
|
40
|
+
click_on "Destroy", match: :first
|
41
|
+
end
|
42
|
+
|
43
|
+
assert_text "Basecamp integration was successfully destroyed"
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require "application_system_test_case"
|
2
|
+
|
3
|
+
class CodeLinkBatchesTest < ApplicationSystemTestCase
|
4
|
+
setup do
|
5
|
+
@code_link_batch = code_link_batches(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "visiting the index" do
|
9
|
+
visit code_link_batches_url
|
10
|
+
assert_selector "h1", text: "Code Link Batches"
|
11
|
+
end
|
12
|
+
|
13
|
+
test "creating a Code link batch" do
|
14
|
+
visit code_link_batches_url
|
15
|
+
click_on "New Code Link Batch"
|
16
|
+
|
17
|
+
fill_in "Code link", with: @code_link_batch.code_link_id
|
18
|
+
fill_in "Description", with: @code_link_batch.description
|
19
|
+
click_on "Create Code link batch"
|
20
|
+
|
21
|
+
assert_text "Code link batch was successfully created"
|
22
|
+
click_on "Back"
|
23
|
+
end
|
24
|
+
|
25
|
+
test "updating a Code link batch" do
|
26
|
+
visit code_link_batches_url
|
27
|
+
click_on "Edit", match: :first
|
28
|
+
|
29
|
+
fill_in "Code link", with: @code_link_batch.code_link_id
|
30
|
+
fill_in "Description", with: @code_link_batch.description
|
31
|
+
click_on "Update Code link batch"
|
32
|
+
|
33
|
+
assert_text "Code link batch was successfully updated"
|
34
|
+
click_on "Back"
|
35
|
+
end
|
36
|
+
|
37
|
+
test "destroying a Code link batch" do
|
38
|
+
visit code_link_batches_url
|
39
|
+
page.accept_confirm do
|
40
|
+
click_on "Destroy", match: :first
|
41
|
+
end
|
42
|
+
|
43
|
+
assert_text "Code link batch was successfully destroyed"
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require "application_system_test_case"
|
2
|
+
|
3
|
+
class CodeLinkTypesTest < ApplicationSystemTestCase
|
4
|
+
setup do
|
5
|
+
@code_link_type = code_link_types(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "visiting the index" do
|
9
|
+
visit code_link_types_url
|
10
|
+
assert_selector "h1", text: "Code Link Types"
|
11
|
+
end
|
12
|
+
|
13
|
+
test "creating a Code link type" do
|
14
|
+
visit code_link_types_url
|
15
|
+
click_on "New Code Link Type"
|
16
|
+
|
17
|
+
fill_in "Type description", with: @code_link_type.type_description
|
18
|
+
fill_in "Type", with: @code_link_type.type_id
|
19
|
+
click_on "Create Code link type"
|
20
|
+
|
21
|
+
assert_text "Code link type was successfully created"
|
22
|
+
click_on "Back"
|
23
|
+
end
|
24
|
+
|
25
|
+
test "updating a Code link type" do
|
26
|
+
visit code_link_types_url
|
27
|
+
click_on "Edit", match: :first
|
28
|
+
|
29
|
+
fill_in "Type description", with: @code_link_type.type_description
|
30
|
+
fill_in "Type", with: @code_link_type.type_id
|
31
|
+
click_on "Update Code link type"
|
32
|
+
|
33
|
+
assert_text "Code link type was successfully updated"
|
34
|
+
click_on "Back"
|
35
|
+
end
|
36
|
+
|
37
|
+
test "destroying a Code link type" do
|
38
|
+
visit code_link_types_url
|
39
|
+
page.accept_confirm do
|
40
|
+
click_on "Destroy", match: :first
|
41
|
+
end
|
42
|
+
|
43
|
+
assert_text "Code link type was successfully destroyed"
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require "application_system_test_case"
|
2
|
+
|
3
|
+
class CodeLinksTest < ApplicationSystemTestCase
|
4
|
+
setup do
|
5
|
+
@code_link = code_links(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "visiting the index" do
|
9
|
+
visit code_links_url
|
10
|
+
assert_selector "h1", text: "Code Links"
|
11
|
+
end
|
12
|
+
|
13
|
+
test "creating a Code link" do
|
14
|
+
visit code_links_url
|
15
|
+
click_on "New Code Link"
|
16
|
+
|
17
|
+
fill_in "Code link type", with: @code_link.code_link_type_id
|
18
|
+
fill_in "Description", with: @code_link.description
|
19
|
+
fill_in "Link", with: @code_link.link
|
20
|
+
click_on "Create Code link"
|
21
|
+
|
22
|
+
assert_text "Code link was successfully created"
|
23
|
+
click_on "Back"
|
24
|
+
end
|
25
|
+
|
26
|
+
test "updating a Code link" do
|
27
|
+
visit code_links_url
|
28
|
+
click_on "Edit", match: :first
|
29
|
+
|
30
|
+
fill_in "Code link type", with: @code_link.code_link_type_id
|
31
|
+
fill_in "Description", with: @code_link.description
|
32
|
+
fill_in "Link", with: @code_link.link
|
33
|
+
click_on "Update Code link"
|
34
|
+
|
35
|
+
assert_text "Code link was successfully updated"
|
36
|
+
click_on "Back"
|
37
|
+
end
|
38
|
+
|
39
|
+
test "destroying a Code link" do
|
40
|
+
visit code_links_url
|
41
|
+
page.accept_confirm do
|
42
|
+
click_on "Destroy", match: :first
|
43
|
+
end
|
44
|
+
|
45
|
+
assert_text "Code link was successfully destroyed"
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require "application_system_test_case"
|
2
|
+
|
3
|
+
class CodesTest < ApplicationSystemTestCase
|
4
|
+
setup do
|
5
|
+
@code = codes(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "visiting the index" do
|
9
|
+
visit codes_url
|
10
|
+
assert_selector "h1", text: "Codes"
|
11
|
+
end
|
12
|
+
|
13
|
+
test "creating a Code" do
|
14
|
+
visit codes_url
|
15
|
+
click_on "New Code"
|
16
|
+
|
17
|
+
fill_in "Code links", with: @code.code_links_id
|
18
|
+
fill_in "Gist link", with: @code.gist_link
|
19
|
+
fill_in "Github link", with: @code.github_link
|
20
|
+
click_on "Create Code"
|
21
|
+
|
22
|
+
assert_text "Code was successfully created"
|
23
|
+
click_on "Back"
|
24
|
+
end
|
25
|
+
|
26
|
+
test "updating a Code" do
|
27
|
+
visit codes_url
|
28
|
+
click_on "Edit", match: :first
|
29
|
+
|
30
|
+
fill_in "Code links", with: @code.code_links_id
|
31
|
+
fill_in "Gist link", with: @code.gist_link
|
32
|
+
fill_in "Github link", with: @code.github_link
|
33
|
+
click_on "Update Code"
|
34
|
+
|
35
|
+
assert_text "Code was successfully updated"
|
36
|
+
click_on "Back"
|
37
|
+
end
|
38
|
+
|
39
|
+
test "destroying a Code" do
|
40
|
+
visit codes_url
|
41
|
+
page.accept_confirm do
|
42
|
+
click_on "Destroy", match: :first
|
43
|
+
end
|
44
|
+
|
45
|
+
assert_text "Code was successfully destroyed"
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require "application_system_test_case"
|
2
|
+
|
3
|
+
class CookieChangesTest < ApplicationSystemTestCase
|
4
|
+
setup do
|
5
|
+
@cookie_change = cookie_changes(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "visiting the index" do
|
9
|
+
visit cookie_changes_url
|
10
|
+
assert_selector "h1", text: "Cookie Changes"
|
11
|
+
end
|
12
|
+
|
13
|
+
test "creating a Cookie change" do
|
14
|
+
visit cookie_changes_url
|
15
|
+
click_on "New Cookie Change"
|
16
|
+
|
17
|
+
fill_in "Identifier", with: @cookie_change.identifier
|
18
|
+
fill_in "Value", with: @cookie_change.value
|
19
|
+
click_on "Create Cookie change"
|
20
|
+
|
21
|
+
assert_text "Cookie change was successfully created"
|
22
|
+
click_on "Back"
|
23
|
+
end
|
24
|
+
|
25
|
+
test "updating a Cookie change" do
|
26
|
+
visit cookie_changes_url
|
27
|
+
click_on "Edit", match: :first
|
28
|
+
|
29
|
+
fill_in "Identifier", with: @cookie_change.identifier
|
30
|
+
fill_in "Value", with: @cookie_change.value
|
31
|
+
click_on "Update Cookie change"
|
32
|
+
|
33
|
+
assert_text "Cookie change was successfully updated"
|
34
|
+
click_on "Back"
|
35
|
+
end
|
36
|
+
|
37
|
+
test "destroying a Cookie change" do
|
38
|
+
visit cookie_changes_url
|
39
|
+
page.accept_confirm do
|
40
|
+
click_on "Destroy", match: :first
|
41
|
+
end
|
42
|
+
|
43
|
+
assert_text "Cookie change was successfully destroyed"
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require "application_system_test_case"
|
2
|
+
|
3
|
+
class Partners::GetPaidsTest < ApplicationSystemTestCase
|
4
|
+
setup do
|
5
|
+
@partners_get_paid = partners_get_paids(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "visiting the index" do
|
9
|
+
visit partners_get_paids_url
|
10
|
+
assert_selector "h1", text: "Partners/Get Paids"
|
11
|
+
end
|
12
|
+
|
13
|
+
test "creating a Get paid" do
|
14
|
+
visit partners_get_paids_url
|
15
|
+
click_on "New Partners/Get Paid"
|
16
|
+
|
17
|
+
fill_in "Enter invoice number", with: @partners_get_paid.enter_invoice_number
|
18
|
+
fill_in "You will receive this when question mark", with: @partners_get_paid.you_will_receive_this_when_question_mark
|
19
|
+
click_on "Create Get paid"
|
20
|
+
|
21
|
+
assert_text "Get paid was successfully created"
|
22
|
+
click_on "Back"
|
23
|
+
end
|
24
|
+
|
25
|
+
test "updating a Get paid" do
|
26
|
+
visit partners_get_paids_url
|
27
|
+
click_on "Edit", match: :first
|
28
|
+
|
29
|
+
fill_in "Enter invoice number", with: @partners_get_paid.enter_invoice_number
|
30
|
+
fill_in "You will receive this when question mark", with: @partners_get_paid.you_will_receive_this_when_question_mark
|
31
|
+
click_on "Update Get paid"
|
32
|
+
|
33
|
+
assert_text "Get paid was successfully updated"
|
34
|
+
click_on "Back"
|
35
|
+
end
|
36
|
+
|
37
|
+
test "destroying a Get paid" do
|
38
|
+
visit partners_get_paids_url
|
39
|
+
page.accept_confirm do
|
40
|
+
click_on "Destroy", match: :first
|
41
|
+
end
|
42
|
+
|
43
|
+
assert_text "Get paid was successfully destroyed"
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require "application_system_test_case"
|
2
|
+
|
3
|
+
class SearchesTest < ApplicationSystemTestCase
|
4
|
+
setup do
|
5
|
+
@search = searches(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "visiting the index" do
|
9
|
+
visit searches_url
|
10
|
+
assert_selector "h1", text: "Searches"
|
11
|
+
end
|
12
|
+
|
13
|
+
test "creating a Search" do
|
14
|
+
visit searches_url
|
15
|
+
click_on "New Search"
|
16
|
+
|
17
|
+
fill_in "Query", with: @search.query
|
18
|
+
click_on "Create Search"
|
19
|
+
|
20
|
+
assert_text "Search was successfully created"
|
21
|
+
click_on "Back"
|
22
|
+
end
|
23
|
+
|
24
|
+
test "updating a Search" do
|
25
|
+
visit searches_url
|
26
|
+
click_on "Edit", match: :first
|
27
|
+
|
28
|
+
fill_in "Query", with: @search.query
|
29
|
+
click_on "Update Search"
|
30
|
+
|
31
|
+
assert_text "Search was successfully updated"
|
32
|
+
click_on "Back"
|
33
|
+
end
|
34
|
+
|
35
|
+
test "destroying a Search" do
|
36
|
+
visit searches_url
|
37
|
+
page.accept_confirm do
|
38
|
+
click_on "Destroy", match: :first
|
39
|
+
end
|
40
|
+
|
41
|
+
assert_text "Search was successfully destroyed"
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require "application_system_test_case"
|
2
|
+
|
3
|
+
class TypesTest < ApplicationSystemTestCase
|
4
|
+
setup do
|
5
|
+
@type = types(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "visiting the index" do
|
9
|
+
visit types_url
|
10
|
+
assert_selector "h1", text: "Types"
|
11
|
+
end
|
12
|
+
|
13
|
+
test "creating a Type" do
|
14
|
+
visit types_url
|
15
|
+
click_on "New Type"
|
16
|
+
|
17
|
+
fill_in "Code", with: @type.code_id
|
18
|
+
click_on "Create Type"
|
19
|
+
|
20
|
+
assert_text "Type was successfully created"
|
21
|
+
click_on "Back"
|
22
|
+
end
|
23
|
+
|
24
|
+
test "updating a Type" do
|
25
|
+
visit types_url
|
26
|
+
click_on "Edit", match: :first
|
27
|
+
|
28
|
+
fill_in "Code", with: @type.code_id
|
29
|
+
click_on "Update Type"
|
30
|
+
|
31
|
+
assert_text "Type was successfully updated"
|
32
|
+
click_on "Back"
|
33
|
+
end
|
34
|
+
|
35
|
+
test "destroying a Type" do
|
36
|
+
visit types_url
|
37
|
+
page.accept_confirm do
|
38
|
+
click_on "Destroy", match: :first
|
39
|
+
end
|
40
|
+
|
41
|
+
assert_text "Type was successfully destroyed"
|
42
|
+
end
|
43
|
+
end
|