mumuki-laboratory 8.1.1 → 8.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -8
  3. data/app/assets/javascripts/mumuki_laboratory/application/bridge.js +2 -1
  4. data/app/assets/javascripts/mumuki_laboratory/application/button.js +4 -6
  5. data/app/assets/javascripts/mumuki_laboratory/application/codemirror-builder.js +3 -3
  6. data/app/assets/javascripts/mumuki_laboratory/application/codemirror.js +6 -6
  7. data/app/assets/javascripts/mumuki_laboratory/application/console.js +2 -2
  8. data/app/assets/javascripts/mumuki_laboratory/application/discussions.js +7 -7
  9. data/app/assets/javascripts/mumuki_laboratory/application/editors.js +1 -1
  10. data/app/assets/javascripts/mumuki_laboratory/application/elipsis.js +1 -1
  11. data/app/assets/javascripts/mumuki_laboratory/application/events.js +2 -2
  12. data/app/assets/javascripts/mumuki_laboratory/application/exercise.js +2 -2
  13. data/app/assets/javascripts/mumuki_laboratory/application/gamification.js +13 -3
  14. data/app/assets/javascripts/mumuki_laboratory/application/i18n.js +73 -0
  15. data/app/assets/javascripts/mumuki_laboratory/application/inputs.js +1 -1
  16. data/app/assets/javascripts/mumuki_laboratory/application/kids.js +26 -5
  17. data/app/assets/javascripts/mumuki_laboratory/application/kindergarten.js +13 -8
  18. data/app/assets/javascripts/mumuki_laboratory/application/messages.js +6 -6
  19. data/app/assets/javascripts/mumuki_laboratory/application/mu-modal-carrousel.js +1 -1
  20. data/app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js +1 -1
  21. data/app/assets/javascripts/mumuki_laboratory/application/multiple-files.js +3 -3
  22. data/app/assets/javascripts/mumuki_laboratory/application/multiple-scenarios.js +1 -1
  23. data/app/assets/javascripts/mumuki_laboratory/application/pin.js +1 -1
  24. data/app/assets/javascripts/mumuki_laboratory/application/primary.js +6 -4
  25. data/app/assets/javascripts/mumuki_laboratory/application/progress.js +1 -1
  26. data/app/assets/javascripts/mumuki_laboratory/application/results-renderer.js +29 -2
  27. data/app/assets/javascripts/mumuki_laboratory/application/speech-bubble-renderer.js +4 -4
  28. data/app/assets/javascripts/mumuki_laboratory/application/submission.js +72 -48
  29. data/app/assets/javascripts/mumuki_laboratory/application/submissions-store.js +3 -3
  30. data/app/assets/javascripts/mumuki_laboratory/application/sync-mode.js +2 -2
  31. data/app/assets/javascripts/mumuki_laboratory/application/timer.js +1 -1
  32. data/app/assets/stylesheets/mumuki_laboratory/application/_layout.scss +7 -7
  33. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids.scss +4 -0
  34. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids_results.scss +1 -0
  35. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_overlap.scss +0 -4
  36. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_terms.scss +4 -0
  37. data/app/controllers/chapters_controller.rb +9 -5
  38. data/app/controllers/concerns/with_user_discussion_validation.rb +6 -0
  39. data/app/controllers/discussions_controller.rb +0 -6
  40. data/app/controllers/guide_container_controller.rb +2 -7
  41. data/app/helpers/assignment_result_helper.rb +1 -1
  42. data/app/helpers/contextualization_result_helper.rb +0 -8
  43. data/app/helpers/discussions_helper.rb +12 -4
  44. data/app/helpers/editor_tabs_helper.rb +1 -1
  45. data/app/helpers/icons_helper.rb +1 -1
  46. data/app/helpers/links_helper.rb +3 -3
  47. data/app/helpers/menu_bar_helper.rb +9 -1
  48. data/app/helpers/overlapped_buttons_helper.rb +6 -2
  49. data/app/views/book/show.html.erb +2 -2
  50. data/app/views/book_discussions/index.html.erb +3 -1
  51. data/app/views/chapters/show.html.erb +21 -9
  52. data/app/views/complements/show.html.erb +1 -1
  53. data/app/views/discussions/_message.html.erb +2 -2
  54. data/app/views/discussions/index.html.erb +11 -4
  55. data/app/views/exams/show.html.erb +1 -1
  56. data/app/views/exercise_solutions/_kids_level_up.html.erb +1 -1
  57. data/app/views/exercises/_exercise_assignment.html.erb +1 -1
  58. data/app/views/exercises/_read_only.html.erb +1 -1
  59. data/app/views/exercises/show.html.erb +2 -2
  60. data/app/views/layouts/_copyright.html.erb +1 -1
  61. data/app/views/layouts/_discussions.html.erb +0 -4
  62. data/app/views/layouts/_guide.html.erb +9 -36
  63. data/app/views/layouts/_guide_container.html.erb +28 -0
  64. data/app/views/layouts/_guide_title_icons.html.erb +9 -0
  65. data/app/views/layouts/_kids.html.erb +4 -4
  66. data/app/views/layouts/_kindergarten.html.erb +5 -5
  67. data/app/views/layouts/_social_media.html.erb +4 -4
  68. data/app/views/layouts/_timer.html.erb +1 -1
  69. data/app/views/layouts/application.html.erb +31 -27
  70. data/app/views/layouts/embedded.html.erb +14 -11
  71. data/app/views/layouts/exercise_inputs/editors/_code.html.erb +1 -6
  72. data/app/views/layouts/exercise_inputs/editors/_multiple_files.html.erb +4 -9
  73. data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +1 -1
  74. data/app/views/layouts/exercise_inputs/layouts/_input_kindergarten.html.erb +1 -1
  75. data/app/views/layouts/modals/_guide_corollary.html.erb +13 -3
  76. data/app/views/layouts/modals/_kids_results.html.erb +2 -2
  77. data/app/views/layouts/modals/_kindergarten_context.html.erb +3 -3
  78. data/app/views/layouts/modals/_kindergarten_results.html.erb +3 -3
  79. data/app/views/layouts/modals/_kindergarten_results_aborted.html.erb +2 -2
  80. data/app/views/layouts/modals/_level_up.html.erb +1 -1
  81. data/app/views/lessons/show.html.erb +1 -1
  82. data/app/views/users/_edit_user_form.html.erb +1 -1
  83. data/app/views/users/_term.html.erb +1 -1
  84. data/app/views/users/_user_form.html.erb +1 -1
  85. data/lib/mumuki/laboratory/controllers/results_rendering.rb +2 -1
  86. data/lib/mumuki/laboratory/engine.rb +1 -1
  87. data/lib/mumuki/laboratory/locales/en.yml +5 -8
  88. data/lib/mumuki/laboratory/locales/es-CL.yml +5 -3
  89. data/lib/mumuki/laboratory/locales/es.yml +8 -10
  90. data/lib/mumuki/laboratory/locales/pt.yml +5 -8
  91. data/lib/mumuki/laboratory/version.rb +1 -1
  92. data/spec/controllers/discussions_controller_spec.rb +19 -0
  93. data/spec/controllers/exercise_solutions_controller_spec.rb +3 -2
  94. data/spec/dummy/db/schema.rb +50 -1
  95. data/spec/dummy/public/character/animations.json +1 -0
  96. data/{public → spec/dummy/public}/character/kibi/context.svg +0 -0
  97. data/{public → spec/dummy/public}/character/kibi/failure.svg +0 -0
  98. data/{public → spec/dummy/public}/character/kibi/jump.svg +0 -0
  99. data/spec/dummy/public/character/kibi/passed_with_warnings.svg +4 -0
  100. data/{public → spec/dummy/public}/character/kibi/success2_l.svg +0 -0
  101. data/{public → spec/dummy/public}/character/kibi/success_l.svg +0 -0
  102. data/{public → spec/dummy/public}/character/magnifying_glass/apparition.svg +0 -0
  103. data/{public → spec/dummy/public}/character/magnifying_glass/loop.svg +0 -0
  104. data/spec/features/chapters_flow_spec.rb +112 -0
  105. data/spec/features/login_flow_spec.rb +1 -1
  106. data/spec/features/terms_flow_spec.rb +2 -0
  107. data/spec/features/topic_flow_spec.rb +0 -1
  108. data/spec/helpers/icons_helper_spec.rb +3 -3
  109. data/spec/helpers/test_results_rendering_spec.rb +8 -8
  110. data/spec/helpers/with_navigation_spec.rb +14 -14
  111. data/spec/javascripts/gamification-spec.js +2 -2
  112. data/spec/javascripts/i18n-spec.js +79 -0
  113. data/spec/javascripts/kids-button-spec.js +36 -0
  114. metadata +136 -115
  115. data/spec/dummy/config/database.travis.yml +0 -4
  116. data/spec/features/chapter_spec.rb +0 -70
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-laboratory
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.1
4
+ version: 8.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-06 00:00:00.000000000 Z
11
+ date: 2021-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 8.1.0
33
+ version: 8.3.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 8.1.0
40
+ version: 8.3.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mumukit-bridge
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.23'
117
+ version: '2.0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '1.23'
124
+ version: '2.0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: muvment
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -193,19 +193,19 @@ dependencies:
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
- name: font-awesome-rails
196
+ name: font_awesome5_rails
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: '4.7'
201
+ version: '1.3'
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: '4.7'
208
+ version: '1.3'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: momentjs-rails
211
211
  requirement: !ruby/object:Gem::Requirement
@@ -311,6 +311,9 @@ dependencies:
311
311
  - - "~>"
312
312
  - !ruby/object:Gem::Version
313
313
  version: '2.0'
314
+ - - "<"
315
+ - !ruby/object:Gem::Version
316
+ version: '2.2'
314
317
  type: :development
315
318
  prerelease: false
316
319
  version_requirements: !ruby/object:Gem::Requirement
@@ -318,6 +321,9 @@ dependencies:
318
321
  - - "~>"
319
322
  - !ruby/object:Gem::Version
320
323
  version: '2.0'
324
+ - - "<"
325
+ - !ruby/object:Gem::Version
326
+ version: '2.2'
321
327
  - !ruby/object:Gem::Dependency
322
328
  name: webdrivers
323
329
  requirement: !ruby/object:Gem::Requirement
@@ -364,6 +370,7 @@ files:
364
370
  - app/assets/javascripts/mumuki_laboratory/application/exercise.js
365
371
  - app/assets/javascripts/mumuki_laboratory/application/free-form.js
366
372
  - app/assets/javascripts/mumuki_laboratory/application/gamification.js
373
+ - app/assets/javascripts/mumuki_laboratory/application/i18n.js
367
374
  - app/assets/javascripts/mumuki_laboratory/application/inputs.js
368
375
  - app/assets/javascripts/mumuki_laboratory/application/interval.js
369
376
  - app/assets/javascripts/mumuki_laboratory/application/kids.js
@@ -552,6 +559,8 @@ files:
552
559
  - app/views/layouts/_error.html.erb
553
560
  - app/views/layouts/_exercise_skipped.html.erb
554
561
  - app/views/layouts/_guide.html.erb
562
+ - app/views/layouts/_guide_container.html.erb
563
+ - app/views/layouts/_guide_title_icons.html.erb
555
564
  - app/views/layouts/_kids.html.erb
556
565
  - app/views/layouts/_kindergarten.html.erb
557
566
  - app/views/layouts/_main.html.erb
@@ -664,13 +673,6 @@ files:
664
673
  - lib/tasks/messages.rake
665
674
  - lib/tasks/users.rake
666
675
  - public/422.html
667
- - public/character/kibi/context.svg
668
- - public/character/kibi/failure.svg
669
- - public/character/kibi/jump.svg
670
- - public/character/kibi/success2_l.svg
671
- - public/character/kibi/success_l.svg
672
- - public/character/magnifying_glass/apparition.svg
673
- - public/character/magnifying_glass/loop.svg
674
676
  - public/compass_rose.svg
675
677
  - public/email-banner.png
676
678
  - public/favicon.ico
@@ -704,7 +706,6 @@ files:
704
706
  - spec/dummy/config/application.rb
705
707
  - spec/dummy/config/boot.rb
706
708
  - spec/dummy/config/cable.yml
707
- - spec/dummy/config/database.travis.yml
708
709
  - spec/dummy/config/database.yml
709
710
  - spec/dummy/config/environment.rb
710
711
  - spec/dummy/config/environments/development.rb
@@ -723,6 +724,14 @@ files:
723
724
  - spec/dummy/db/seeds.rb
724
725
  - spec/dummy/package.json
725
726
  - spec/dummy/public/character/animations.json
727
+ - spec/dummy/public/character/kibi/context.svg
728
+ - spec/dummy/public/character/kibi/failure.svg
729
+ - spec/dummy/public/character/kibi/jump.svg
730
+ - spec/dummy/public/character/kibi/passed_with_warnings.svg
731
+ - spec/dummy/public/character/kibi/success2_l.svg
732
+ - spec/dummy/public/character/kibi/success_l.svg
733
+ - spec/dummy/public/character/magnifying_glass/apparition.svg
734
+ - spec/dummy/public/character/magnifying_glass/loop.svg
726
735
  - spec/dummy/public/error/401.svg
727
736
  - spec/dummy/public/error/403.svg
728
737
  - spec/dummy/public/error/404.svg
@@ -733,7 +742,7 @@ files:
733
742
  - spec/dummy/public/error/timeout_3.svg
734
743
  - spec/dummy/public/medal/outline.svg
735
744
  - spec/evaluation_helper.rb
736
- - spec/features/chapter_spec.rb
745
+ - spec/features/chapters_flow_spec.rb
737
746
  - spec/features/complements_flow_spec.rb
738
747
  - spec/features/disable_user_flow_spec.rb
739
748
  - spec/features/disabled_organization_flow_spec.rb
@@ -778,6 +787,8 @@ files:
778
787
  - spec/javascripts/exercise-spec.js
779
788
  - spec/javascripts/gamification-spec.js
780
789
  - spec/javascripts/global-spec.js
790
+ - spec/javascripts/i18n-spec.js
791
+ - spec/javascripts/kids-button-spec.js
781
792
  - spec/javascripts/results-renderers-spec.js
782
793
  - spec/javascripts/spec-helper.js
783
794
  - spec/javascripts/speech-bubble-renderer-spec.js
@@ -849,121 +860,131 @@ required_rubygems_version: !ruby/object:Gem::Requirement
849
860
  - !ruby/object:Gem::Version
850
861
  version: '0'
851
862
  requirements: []
852
- rubygems_version: 3.1.2
863
+ rubyforge_project:
864
+ rubygems_version: 2.7.6
853
865
  signing_key:
854
866
  specification_version: 4
855
867
  summary: Code assement web application for the Mumuki Platform.
856
868
  test_files:
857
- - spec/javascripts/gamification-spec.js
858
- - spec/javascripts/csrf-token-spec.js
859
- - spec/javascripts/results-renderers-spec.js
860
- - spec/javascripts/bridge-spec.js
861
- - spec/javascripts/editors-spec.js
862
- - spec/javascripts/spec-helper.js
863
- - spec/javascripts/submissions-store-spec.js
864
- - spec/javascripts/timeout-spec.js
865
- - spec/javascripts/timer-spec.js
866
- - spec/javascripts/events-spec.js
867
- - spec/javascripts/exercise-spec.js
868
- - spec/javascripts/speech-bubble-renderer-spec.js
869
- - spec/javascripts/elipsis-spec.js
870
- - spec/javascripts/sync-mode-spec.js
871
- - spec/javascripts/global-spec.js
872
869
  - spec/spec_helper.rb
873
- - spec/dummy/config/locales/en.yml
874
- - spec/dummy/config/spring.rb
875
- - spec/dummy/config/database.travis.yml
870
+ - spec/teaspoon_env.rb
871
+ - spec/dummy/package.json
872
+ - spec/dummy/config.ru
873
+ - spec/dummy/db/seeds.rb
874
+ - spec/dummy/db/schema.rb
875
+ - spec/dummy/public/medal/outline.svg
876
+ - spec/dummy/public/error/404.svg
877
+ - spec/dummy/public/error/500.svg
878
+ - spec/dummy/public/error/timeout_2.svg
879
+ - spec/dummy/public/error/401.svg
880
+ - spec/dummy/public/error/timeout_1.svg
881
+ - spec/dummy/public/error/timeout_3.svg
882
+ - spec/dummy/public/error/403.svg
883
+ - spec/dummy/public/error/410.svg
884
+ - spec/dummy/public/character/magnifying_glass/loop.svg
885
+ - spec/dummy/public/character/magnifying_glass/apparition.svg
886
+ - spec/dummy/public/character/kibi/passed_with_warnings.svg
887
+ - spec/dummy/public/character/kibi/success_l.svg
888
+ - spec/dummy/public/character/kibi/success2_l.svg
889
+ - spec/dummy/public/character/kibi/jump.svg
890
+ - spec/dummy/public/character/kibi/context.svg
891
+ - spec/dummy/public/character/kibi/failure.svg
892
+ - spec/dummy/public/character/animations.json
893
+ - spec/dummy/config/environment.rb
876
894
  - spec/dummy/config/secrets.yml
877
895
  - spec/dummy/config/puma.rb
878
- - spec/dummy/config/environment.rb
879
896
  - spec/dummy/config/application.rb
880
- - spec/dummy/config/database.yml
881
- - spec/dummy/config/rabbit.yml
882
- - spec/dummy/config/boot.rb
883
- - spec/dummy/config/routes.rb
897
+ - spec/dummy/config/initializers/cookies_serializer.rb
898
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
899
+ - spec/dummy/config/initializers/assets.rb
900
+ - spec/dummy/config/initializers/wrap_parameters.rb
884
901
  - spec/dummy/config/cable.yml
902
+ - spec/dummy/config/routes.rb
903
+ - spec/dummy/config/database.yml
904
+ - spec/dummy/config/spring.rb
885
905
  - spec/dummy/config/environments/test.rb
886
906
  - spec/dummy/config/environments/development.rb
887
- - spec/dummy/config/initializers/wrap_parameters.rb
888
- - spec/dummy/config/initializers/assets.rb
889
- - spec/dummy/config/initializers/cookies_serializer.rb
890
- - spec/dummy/config/initializers/filter_parameter_logging.rb
891
- - spec/dummy/config.ru
892
- - spec/dummy/public/medal/outline.svg
893
- - spec/dummy/public/character/animations.json
894
- - spec/dummy/public/error/403.svg
895
- - spec/dummy/public/error/410.svg
896
- - spec/dummy/public/error/timeout_3.svg
897
- - spec/dummy/public/error/401.svg
898
- - spec/dummy/public/error/500.svg
899
- - spec/dummy/public/error/404.svg
900
- - spec/dummy/public/error/timeout_2.svg
901
- - spec/dummy/public/error/timeout_1.svg
902
- - spec/dummy/bin/yarn
903
- - spec/dummy/bin/rails
904
- - spec/dummy/bin/setup
905
- - spec/dummy/bin/update
907
+ - spec/dummy/config/boot.rb
908
+ - spec/dummy/config/rabbit.yml
909
+ - spec/dummy/config/locales/en.yml
910
+ - spec/dummy/Rakefile
906
911
  - spec/dummy/bin/rake
912
+ - spec/dummy/bin/setup
907
913
  - spec/dummy/bin/bundle
908
- - spec/dummy/db/seeds.rb
909
- - spec/dummy/db/schema.rb
910
- - spec/dummy/package.json
911
- - spec/dummy/Rakefile
912
- - spec/evaluation_helper.rb
913
- - spec/helpers/page_title_helper_spec.rb
914
- - spec/helpers/test_results_rendering_spec.rb
915
- - spec/helpers/with_choices_spec.rb
916
- - spec/helpers/authors_helper_spec.rb
917
- - spec/helpers/avatar_helper_spec.rb
918
- - spec/helpers/icons_helper_spec.rb
919
- - spec/helpers/email_helper_spec.rb
920
- - spec/helpers/application_helper_spec.rb
921
- - spec/helpers/breadcrumbs_helper_spec.rb
922
- - spec/helpers/with_navigation_spec.rb
923
- - spec/helpers/exercise_input_helper_spec.rb
924
- - spec/login_helper.rb
925
- - spec/mailers/previews/user_mailer_preview.rb
914
+ - spec/dummy/bin/rails
915
+ - spec/dummy/bin/yarn
916
+ - spec/dummy/bin/update
926
917
  - spec/mailers/user_mailer_spec.rb
927
- - spec/controllers/guide_progress_controller_spec.rb
928
- - spec/controllers/students_api_controller_spec.rb
929
- - spec/controllers/messages_controller_spec.rb
930
- - spec/controllers/users_api_controller_spec.rb
931
- - spec/controllers/chapters_controller_spec.rb
932
- - spec/controllers/users_controller_spec.rb
933
- - spec/controllers/discussions_messages_controller_spec.rb
934
- - spec/controllers/courses_api_controller_spec.rb
935
- - spec/controllers/organizations_api_controller_spec.rb
936
- - spec/controllers/api_clients_controller.rb
937
- - spec/controllers/discussions_controller_spec.rb
938
- - spec/controllers/exercise_solutions_controller_spec.rb
939
- - spec/controllers/confirmations_controller_spec.rb
940
- - spec/controllers/invitations_controller_spec.rb
941
- - spec/capybara_helper.rb
942
- - spec/teaspoon_env.rb
943
- - spec/features/disable_user_flow_spec.rb
944
- - spec/features/invitations_flow_spec.rb
945
- - spec/features/topic_flow_spec.rb
946
- - spec/features/guide_reset_spec.rb
947
- - spec/features/discussion_flow_spec.rb
918
+ - spec/mailers/previews/user_mailer_preview.rb
919
+ - spec/api_helper.rb
920
+ - spec/features/runner_assets_spec.rb
948
921
  - spec/features/links_flow_spec.rb
949
922
  - spec/features/not_found_private_flow_spec.rb
950
- - spec/features/not_found_public_flow_spec.rb
951
- - spec/features/exercise_flow_spec.rb
952
- - spec/features/standard_flow_spec.rb
953
- - spec/features/menu_bar_spec.rb
954
- - spec/features/dynamic_exam_spec.rb
955
- - spec/features/immersive_redirection_spec.rb
956
- - spec/features/runner_assets_spec.rb
957
923
  - spec/features/progressive_tips_spec.rb
958
- - spec/features/chapter_spec.rb
959
- - spec/features/terms_flow_spec.rb
960
- - spec/features/login_flow_spec.rb
961
- - spec/features/home_public_flow_spec.rb
962
- - spec/features/profile_flow_spec.rb
963
- - spec/features/lessons_flow_spec.rb
964
924
  - spec/features/disabled_organization_flow_spec.rb
965
925
  - spec/features/complements_flow_spec.rb
966
- - spec/features/exams_flow_spec.rb
926
+ - spec/features/profile_flow_spec.rb
927
+ - spec/features/guide_reset_spec.rb
928
+ - spec/features/menu_bar_spec.rb
967
929
  - spec/features/guides_flow_spec.rb
930
+ - spec/features/exams_flow_spec.rb
931
+ - spec/features/dynamic_exam_spec.rb
932
+ - spec/features/discussion_flow_spec.rb
933
+ - spec/features/chapters_flow_spec.rb
934
+ - spec/features/login_flow_spec.rb
935
+ - spec/features/disable_user_flow_spec.rb
936
+ - spec/features/home_public_flow_spec.rb
968
937
  - spec/features/home_private_flow_spec.rb
969
- - spec/api_helper.rb
938
+ - spec/features/terms_flow_spec.rb
939
+ - spec/features/lessons_flow_spec.rb
940
+ - spec/features/topic_flow_spec.rb
941
+ - spec/features/standard_flow_spec.rb
942
+ - spec/features/immersive_redirection_spec.rb
943
+ - spec/features/not_found_public_flow_spec.rb
944
+ - spec/features/exercise_flow_spec.rb
945
+ - spec/features/invitations_flow_spec.rb
946
+ - spec/capybara_helper.rb
947
+ - spec/evaluation_helper.rb
948
+ - spec/javascripts/submissions-store-spec.js
949
+ - spec/javascripts/exercise-spec.js
950
+ - spec/javascripts/spec-helper.js
951
+ - spec/javascripts/results-renderers-spec.js
952
+ - spec/javascripts/i18n-spec.js
953
+ - spec/javascripts/timer-spec.js
954
+ - spec/javascripts/elipsis-spec.js
955
+ - spec/javascripts/gamification-spec.js
956
+ - spec/javascripts/bridge-spec.js
957
+ - spec/javascripts/timeout-spec.js
958
+ - spec/javascripts/events-spec.js
959
+ - spec/javascripts/editors-spec.js
960
+ - spec/javascripts/sync-mode-spec.js
961
+ - spec/javascripts/speech-bubble-renderer-spec.js
962
+ - spec/javascripts/global-spec.js
963
+ - spec/javascripts/kids-button-spec.js
964
+ - spec/javascripts/csrf-token-spec.js
965
+ - spec/controllers/users_controller_spec.rb
966
+ - spec/controllers/messages_controller_spec.rb
967
+ - spec/controllers/students_api_controller_spec.rb
968
+ - spec/controllers/chapters_controller_spec.rb
969
+ - spec/controllers/confirmations_controller_spec.rb
970
+ - spec/controllers/courses_api_controller_spec.rb
971
+ - spec/controllers/api_clients_controller.rb
972
+ - spec/controllers/discussions_controller_spec.rb
973
+ - spec/controllers/invitations_controller_spec.rb
974
+ - spec/controllers/users_api_controller_spec.rb
975
+ - spec/controllers/discussions_messages_controller_spec.rb
976
+ - spec/controllers/exercise_solutions_controller_spec.rb
977
+ - spec/controllers/organizations_api_controller_spec.rb
978
+ - spec/controllers/guide_progress_controller_spec.rb
979
+ - spec/login_helper.rb
980
+ - spec/helpers/page_title_helper_spec.rb
981
+ - spec/helpers/icons_helper_spec.rb
982
+ - spec/helpers/breadcrumbs_helper_spec.rb
983
+ - spec/helpers/test_results_rendering_spec.rb
984
+ - spec/helpers/application_helper_spec.rb
985
+ - spec/helpers/avatar_helper_spec.rb
986
+ - spec/helpers/authors_helper_spec.rb
987
+ - spec/helpers/with_choices_spec.rb
988
+ - spec/helpers/exercise_input_helper_spec.rb
989
+ - spec/helpers/with_navigation_spec.rb
990
+ - spec/helpers/email_helper_spec.rb
@@ -1,4 +0,0 @@
1
- test:
2
- adapter: postgresql
3
- database: travis_ci_test
4
- username: postgres
@@ -1,70 +0,0 @@
1
- require 'spec_helper'
2
-
3
- feature 'Chapters flow', organization_workspace: :test do
4
- let(:haskell) { create(:haskell) }
5
-
6
- let!(:chapter) {
7
- create(:chapter, name: 'Functional Programming', lessons: [
8
- create(:lesson, name: 'Values and Functions', language: haskell, description: 'Values are everywhere...', exercises: [
9
- create(:exercise, name: 'The Basic Values', description: "Let's say we want to declare a variable...")
10
- ]),
11
- create(:lesson, name: 'Monads and Functors', language: haskell, description: 'Monds are everywhere too...', exercises: [
12
- create(:exercise, name: 'The Maybe Functor', description: "Let's say we want to model absense of value...")
13
- ])
14
- ]) }
15
-
16
- before { reindex_current_organization! }
17
-
18
- context 'no appendix' do
19
- scenario 'show chapter, no appendix' do
20
- visit "/chapters/#{chapter.id}"
21
-
22
- expect(page).to have_text('Functional Programming')
23
- expect(page).to have_text('The Basic Values')
24
-
25
- expect(page).to have_text('Monads and Functors')
26
- expect(page).to have_text('The Maybe Functor')
27
-
28
- expect(page).to_not have_text('Appendix')
29
- end
30
- end
31
-
32
- context 'with appendix' do
33
- before { chapter.topic.update appendix: 'Check this article about endofunctors' }
34
-
35
- scenario 'show chapter, with appendix' do
36
- visit "/chapters/#{chapter.id}"
37
-
38
- expect(page).to have_text('Functional Programming')
39
- expect(page).to have_text('The Basic Values')
40
-
41
- expect(page).to have_text('Monads and Functors')
42
- expect(page).to have_text('The Maybe Functor')
43
-
44
- expect(page).to have_text('Appendix')
45
- end
46
-
47
- scenario 'show appendix' do
48
- visit "/chapters/#{chapter.id}/appendix"
49
- expect(page).to have_text('Appendix')
50
- expect(page).to have_text('endofunctors')
51
- end
52
- end
53
-
54
- context 'incognito user' do
55
- before { Organization.current.update! incognito_mode_enabled: true }
56
- scenario 'show chapter, no appendix' do
57
- visit "/chapters/#{chapter.id}"
58
-
59
- expect(page).to have_text('Functional Programming')
60
- expect(page).to have_text('The Basic Values')
61
-
62
- expect(page).to have_text('Monads and Functors')
63
- expect(page).to have_text('The Maybe Functor')
64
-
65
- expect(page).to_not have_text('Appendix')
66
-
67
- expect(page).to have_text('Sign in')
68
- end
69
- end
70
- end