cypress-on-rails 0.2.2 → 1.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -1
  3. data/.rspec +1 -0
  4. data/.travis.yml +29 -0
  5. data/CHANGELOG.md +6 -0
  6. data/README.md +155 -54
  7. data/Rakefile +8 -0
  8. data/cypress-on-rails.gemspec +10 -9
  9. data/lib/cypress-on-rails.rb +3 -1
  10. data/lib/cypress/smart_factory_wrapper.rb +3 -0
  11. data/lib/cypress_dev.rb +4 -0
  12. data/lib/cypress_dev/command_executor.rb +33 -0
  13. data/lib/cypress_dev/configuration.rb +37 -0
  14. data/lib/cypress_dev/middleware.rb +65 -0
  15. data/lib/{cypress → cypress_dev}/railtie.rb +5 -7
  16. data/lib/cypress_dev/simple_rails_factory.rb +17 -0
  17. data/lib/cypress_dev/smart_factory_wrapper.rb +79 -0
  18. data/lib/cypress_dev/version.rb +3 -0
  19. data/lib/generators/cypress_dev/install_generator.rb +59 -0
  20. data/lib/generators/cypress_dev/templates/config/initializers/cypress_dev.rb.erb +9 -0
  21. data/lib/generators/cypress_dev/templates/spec/cypress.json +4 -0
  22. data/lib/generators/cypress_dev/templates/spec/cypress/app_commands/clean.rb +7 -0
  23. data/lib/generators/cypress_dev/templates/spec/cypress/app_commands/eval.rb +1 -0
  24. data/lib/generators/cypress_dev/templates/spec/cypress/app_commands/factory_bot.rb +12 -0
  25. data/lib/generators/cypress_dev/templates/spec/cypress/app_commands/scenarios/basic.rb +2 -0
  26. data/lib/generators/cypress_dev/templates/spec/cypress/cypress_helper.rb +30 -0
  27. data/lib/generators/cypress_dev/templates/spec/cypress/integration/on_rails_spec.js +33 -0
  28. data/lib/generators/cypress_dev/templates/spec/cypress/support/commands.js +25 -0
  29. data/lib/generators/cypress_dev/templates/spec/cypress/support/index.js +21 -0
  30. data/lib/generators/cypress_dev/templates/spec/cypress/support/on-rails.js +33 -0
  31. data/spec/cypress_dev/command_executor/cypress_helper.rb +6 -0
  32. data/spec/cypress_dev/command_executor/test_command.rb +1 -0
  33. data/spec/cypress_dev/command_executor/test_command_with_options.rb +1 -0
  34. data/spec/cypress_dev/command_executor_spec.rb +33 -0
  35. data/spec/cypress_dev/configuration_spec.rb +23 -0
  36. data/spec/cypress_dev/middleware_spec.rb +104 -0
  37. data/spec/cypress_dev/railtie_spec.rb +22 -0
  38. data/spec/cypress_dev/smart_factory_wrapper_spec.rb +83 -0
  39. data/spec/integrations/rails_3_2/.gitignore +9 -0
  40. data/spec/integrations/rails_3_2/Gemfile +7 -0
  41. data/spec/integrations/rails_3_2/README.rdoc +261 -0
  42. data/spec/integrations/rails_3_2/Rakefile +7 -0
  43. data/spec/integrations/rails_3_2/app/assets/stylesheets/application.css +13 -0
  44. data/spec/integrations/rails_3_2/app/controllers/application_controller.rb +3 -0
  45. data/spec/integrations/rails_3_2/app/controllers/welcome_controller.rb +4 -0
  46. data/spec/integrations/rails_3_2/app/helpers/application_helper.rb +2 -0
  47. data/spec/integrations/rails_3_2/app/models/post.rb +13 -0
  48. data/spec/integrations/rails_3_2/app/views/layouts/application.html.erb +13 -0
  49. data/spec/integrations/rails_3_2/app/views/welcome/index.html.erb +5 -0
  50. data/spec/integrations/rails_3_2/bin/rails +6 -0
  51. data/spec/integrations/rails_3_2/config.ru +4 -0
  52. data/spec/integrations/rails_3_2/config/application.rb +69 -0
  53. data/spec/integrations/rails_3_2/config/boot.rb +6 -0
  54. data/spec/integrations/rails_3_2/config/environment.rb +5 -0
  55. data/spec/integrations/rails_3_2/config/environments/development.rb +31 -0
  56. data/spec/integrations/rails_3_2/config/environments/production.rb +64 -0
  57. data/spec/integrations/rails_3_2/config/environments/test.rb +35 -0
  58. data/spec/integrations/rails_3_2/config/initializers/backtrace_silencers.rb +7 -0
  59. data/spec/integrations/rails_3_2/config/initializers/inflections.rb +15 -0
  60. data/spec/integrations/rails_3_2/config/initializers/mime_types.rb +5 -0
  61. data/spec/integrations/rails_3_2/config/initializers/secret_token.rb +7 -0
  62. data/spec/integrations/rails_3_2/config/initializers/session_store.rb +8 -0
  63. data/spec/integrations/rails_3_2/config/initializers/wrap_parameters.rb +10 -0
  64. data/spec/integrations/rails_3_2/config/locales/en.yml +5 -0
  65. data/spec/integrations/rails_3_2/config/routes.rb +60 -0
  66. data/spec/integrations/rails_3_2/public/404.html +26 -0
  67. data/spec/integrations/rails_3_2/public/422.html +26 -0
  68. data/spec/integrations/rails_3_2/public/500.html +25 -0
  69. data/spec/integrations/rails_3_2/public/favicon.ico +0 -0
  70. data/spec/integrations/rails_3_2/public/robots.txt +5 -0
  71. data/spec/integrations/rails_3_2/test.sh +30 -0
  72. data/spec/integrations/rails_3_2/tmp/.keep +0 -0
  73. data/spec/integrations/rails_3_2/vendor/.gitkeep +0 -0
  74. data/spec/integrations/rails_4_2/.gitignore +10 -0
  75. data/spec/integrations/rails_4_2/Gemfile +8 -0
  76. data/spec/integrations/rails_4_2/README.rdoc +28 -0
  77. data/spec/integrations/rails_4_2/Rakefile +6 -0
  78. data/spec/integrations/rails_4_2/app/controllers/application_controller.rb +5 -0
  79. data/spec/integrations/rails_4_2/app/controllers/welcome_controller.rb +4 -0
  80. data/spec/integrations/rails_4_2/app/models/post.rb +13 -0
  81. data/spec/integrations/rails_4_2/app/views/layouts/application.html.erb +12 -0
  82. data/spec/integrations/rails_4_2/app/views/welcome/index.html.erb +5 -0
  83. data/spec/integrations/rails_4_2/bin/bundle +3 -0
  84. data/spec/integrations/rails_4_2/bin/rails +4 -0
  85. data/spec/integrations/rails_4_2/bin/rake +4 -0
  86. data/spec/integrations/rails_4_2/bin/setup +29 -0
  87. data/spec/integrations/rails_4_2/config.ru +4 -0
  88. data/spec/integrations/rails_4_2/config/application.rb +33 -0
  89. data/spec/integrations/rails_4_2/config/boot.rb +3 -0
  90. data/spec/integrations/rails_4_2/config/environment.rb +5 -0
  91. data/spec/integrations/rails_4_2/config/environments/development.rb +25 -0
  92. data/spec/integrations/rails_4_2/config/environments/production.rb +64 -0
  93. data/spec/integrations/rails_4_2/config/environments/test.rb +42 -0
  94. data/spec/integrations/rails_4_2/config/initializers/backtrace_silencers.rb +7 -0
  95. data/spec/integrations/rails_4_2/config/initializers/cookies_serializer.rb +3 -0
  96. data/spec/integrations/rails_4_2/config/initializers/filter_parameter_logging.rb +4 -0
  97. data/spec/integrations/rails_4_2/config/initializers/inflections.rb +16 -0
  98. data/spec/integrations/rails_4_2/config/initializers/mime_types.rb +4 -0
  99. data/spec/integrations/rails_4_2/config/initializers/session_store.rb +3 -0
  100. data/spec/integrations/rails_4_2/config/initializers/to_time_preserves_timezone.rb +10 -0
  101. data/spec/integrations/rails_4_2/config/initializers/wrap_parameters.rb +9 -0
  102. data/spec/integrations/rails_4_2/config/locales/en.yml +23 -0
  103. data/spec/integrations/rails_4_2/config/routes.rb +56 -0
  104. data/spec/integrations/rails_4_2/config/secrets.yml +22 -0
  105. data/spec/integrations/rails_4_2/public/404.html +67 -0
  106. data/spec/integrations/rails_4_2/public/422.html +67 -0
  107. data/spec/integrations/rails_4_2/public/500.html +66 -0
  108. data/spec/integrations/rails_4_2/public/favicon.ico +0 -0
  109. data/spec/integrations/rails_4_2/public/robots.txt +5 -0
  110. data/spec/integrations/rails_4_2/test.sh +31 -0
  111. data/spec/integrations/rails_4_2/vendor/.keep +0 -0
  112. data/spec/integrations/rails_5_2/.gitignore +10 -0
  113. data/spec/integrations/rails_5_2/Gemfile +12 -0
  114. data/spec/integrations/rails_5_2/README.md +24 -0
  115. data/spec/integrations/rails_5_2/Rakefile +6 -0
  116. data/spec/integrations/rails_5_2/app/controllers/application_controller.rb +2 -0
  117. data/spec/integrations/rails_5_2/app/controllers/welcome_controller.rb +4 -0
  118. data/spec/integrations/rails_5_2/app/jobs/application_job.rb +2 -0
  119. data/spec/integrations/rails_5_2/app/models/post.rb +13 -0
  120. data/spec/integrations/rails_5_2/app/views/layouts/application.html.erb +12 -0
  121. data/spec/integrations/rails_5_2/app/views/welcome/index.html.erb +5 -0
  122. data/spec/integrations/rails_5_2/bin/bundle +3 -0
  123. data/spec/integrations/rails_5_2/bin/rails +4 -0
  124. data/spec/integrations/rails_5_2/bin/rake +4 -0
  125. data/spec/integrations/rails_5_2/bin/setup +25 -0
  126. data/spec/integrations/rails_5_2/bin/update +25 -0
  127. data/spec/integrations/rails_5_2/config.ru +5 -0
  128. data/spec/integrations/rails_5_2/config/application.rb +37 -0
  129. data/spec/integrations/rails_5_2/config/boot.rb +4 -0
  130. data/spec/integrations/rails_5_2/config/credentials.yml.enc +1 -0
  131. data/spec/integrations/rails_5_2/config/environment.rb +5 -0
  132. data/spec/integrations/rails_5_2/config/environments/development.rb +40 -0
  133. data/spec/integrations/rails_5_2/config/environments/production.rb +68 -0
  134. data/spec/integrations/rails_5_2/config/environments/test.rb +36 -0
  135. data/spec/integrations/rails_5_2/config/initializers/application_controller_renderer.rb +8 -0
  136. data/spec/integrations/rails_5_2/config/initializers/backtrace_silencers.rb +7 -0
  137. data/spec/integrations/rails_5_2/config/initializers/content_security_policy.rb +25 -0
  138. data/spec/integrations/rails_5_2/config/initializers/cookies_serializer.rb +5 -0
  139. data/spec/integrations/rails_5_2/config/initializers/filter_parameter_logging.rb +4 -0
  140. data/spec/integrations/rails_5_2/config/initializers/inflections.rb +16 -0
  141. data/spec/integrations/rails_5_2/config/initializers/mime_types.rb +4 -0
  142. data/spec/integrations/rails_5_2/config/initializers/wrap_parameters.rb +9 -0
  143. data/spec/integrations/rails_5_2/config/locales/en.yml +33 -0
  144. data/spec/integrations/rails_5_2/config/master.key +1 -0
  145. data/spec/integrations/rails_5_2/config/routes.rb +4 -0
  146. data/spec/integrations/rails_5_2/public/404.html +67 -0
  147. data/spec/integrations/rails_5_2/public/422.html +67 -0
  148. data/spec/integrations/rails_5_2/public/500.html +66 -0
  149. data/spec/integrations/rails_5_2/public/apple-touch-icon-precomposed.png +0 -0
  150. data/spec/integrations/rails_5_2/public/apple-touch-icon.png +0 -0
  151. data/spec/integrations/rails_5_2/public/favicon.ico +0 -0
  152. data/spec/integrations/rails_5_2/public/robots.txt +1 -0
  153. data/spec/integrations/rails_5_2/test.sh +31 -0
  154. data/spec/integrations/rails_5_2/tmp/.keep +0 -0
  155. data/spec/integrations/rails_5_2/vendor/.keep +0 -0
  156. data/spec/spec_helper.rb +104 -0
  157. metadata +177 -25
  158. data/Gemfile.lock +0 -32
  159. data/bin/cypress +0 -3
  160. data/lib/cypress.rb +0 -27
  161. data/lib/cypress/configuration.rb +0 -41
  162. data/lib/cypress/middleware.rb +0 -69
  163. data/lib/cypress/runner.rb +0 -42
  164. data/lib/cypress/scenario_bank.rb +0 -21
  165. data/lib/cypress/scenario_context.rb +0 -23
  166. data/lib/cypress/version.rb +0 -3
  167. data/lib/generators/install_generator.rb +0 -77
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,9 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
@@ -0,0 +1,33 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # 'true': 'foo'
28
+ #
29
+ # To learn more, please read the Rails Internationalization guide
30
+ # available at http://guides.rubyonrails.org/i18n.html.
31
+
32
+ en:
33
+ hello: "Hello world"
@@ -0,0 +1 @@
1
+ 42b8a9ee98524d2ae0edc4afaaee9d07
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+ root 'welcome#index'
3
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
4
+ end
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1 @@
1
+ # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ echo '--- testing rails 5.2'
5
+
6
+ echo '-- setting environment'
7
+ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
8
+ RAILS_ENV=test
9
+ BUNDLE_GEMFILE="$DIR/Gemfile"
10
+ cd $DIR
11
+
12
+ echo '-- bundle install'
13
+ bundle --version
14
+ bundle install --quiet --gemfile="$DIR/Gemfile" --retry 2 --path vendor/bundle
15
+
16
+ echo '-- cypress install'
17
+ bundle exec ./bin/rails g cypress_dev:install
18
+
19
+ echo '-- start rails server'
20
+ # make sure the server is not running
21
+ (kill -9 `cat tmp/pids/server.pid` || true )
22
+
23
+ bundle exec ./bin/rails server -p 5002 -e test &
24
+ sleep 2 # give rails a chance to start up correctly
25
+
26
+ echo '-- cypress run'
27
+ cd spec
28
+ yarn run cypress run
29
+
30
+ echo '-- stop rails server'
31
+ kill -9 `cat ../tmp/pids/server.pid`
File without changes
File without changes
@@ -0,0 +1,104 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
16
+ RSpec.configure do |config|
17
+ # rspec-expectations config goes here. You can use an alternate
18
+ # assertion/expectation library such as wrong or the stdlib/minitest
19
+ # assertions if you prefer.
20
+ config.expect_with :rspec do |expectations|
21
+ # This option will default to `true` in RSpec 4. It makes the `description`
22
+ # and `failure_message` of custom matchers include text for helper methods
23
+ # defined using `chain`, e.g.:
24
+ # be_bigger_than(2).and_smaller_than(4).description
25
+ # # => "be bigger than 2 and smaller than 4"
26
+ # ...rather than:
27
+ # # => "be bigger than 2"
28
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
29
+ end
30
+
31
+ # rspec-mocks config goes here. You can use an alternate test double
32
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
33
+ config.mock_with :rspec do |mocks|
34
+ # Prevents you from mocking or stubbing a method that does not exist on
35
+ # a real object. This is generally recommended, and will default to
36
+ # `true` in RSpec 4.
37
+ mocks.verify_partial_doubles = true
38
+ end
39
+
40
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
41
+ # have no way to turn it off -- the option exists only for backwards
42
+ # compatibility in RSpec 3). It causes shared context metadata to be
43
+ # inherited by the metadata hash of host groups and examples, rather than
44
+ # triggering implicit auto-inclusion in groups with matching metadata.
45
+ config.shared_context_metadata_behavior = :apply_to_host_groups
46
+
47
+ # This allows you to limit a spec run to individual examples or groups
48
+ # you care about by tagging them with `:focus` metadata. When nothing
49
+ # is tagged with `:focus`, all examples get run. RSpec also provides
50
+ # aliases for `it`, `describe`, and `context` that include `:focus`
51
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
52
+ config.filter_run_when_matching :focus
53
+
54
+ # Allows RSpec to persist some state between runs in order to support
55
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
56
+ # you configure your source control system to ignore this file.
57
+ config.example_status_persistence_file_path = "spec/examples.txt"
58
+
59
+ # Limits the available syntax to the non-monkey patched syntax that is
60
+ # recommended. For more details, see:
61
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
62
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
63
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
64
+ config.disable_monkey_patching!
65
+
66
+ # This setting enables warnings. It's recommended, but in some cases may
67
+ # be too noisy due to issues in dependencies.
68
+ config.warnings = true
69
+
70
+ # Many RSpec users commonly either run the entire suite or an individual
71
+ # file, and it's useful to allow more verbose output when running an
72
+ # individual spec file.
73
+ if config.files_to_run.one?
74
+ # Use the documentation formatter for detailed output,
75
+ # unless a formatter has already been configured
76
+ # (e.g. via a command-line flag).
77
+ config.default_formatter = "doc"
78
+ end
79
+
80
+ # Print the 10 slowest examples and example groups at the
81
+ # end of the spec run, to help surface which specs are running
82
+ # particularly slow.
83
+ # config.profile_examples = 10
84
+
85
+ # Run specs in random order to surface order dependencies. If you find an
86
+ # order dependency and want to debug it, you can fix the order by providing
87
+ # the seed, which is printed after each run.
88
+ # --seed 1234
89
+ config.order = :random
90
+
91
+ # Seed global randomization in this process using the `--seed` CLI option.
92
+ # Setting this allows you to use `--seed` to deterministically reproduce
93
+ # test failures related to randomization by passing the same `--seed` value
94
+ # as the one that triggered the failure.
95
+ Kernel.srand config.seed
96
+
97
+ config.before(:each) do
98
+ require 'cypress_dev/configuration'
99
+ CypressDev.configure do |config|
100
+ config.reset
101
+ config.logger = Logger.new('spec/test.log')
102
+ end
103
+ end
104
+ end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cypress-on-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 1.0.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - miceportal team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-24 00:00:00.000000000 Z
11
+ date: 2018-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: activesupport
14
+ name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,13 +25,13 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: selenium-webdriver
28
+ name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :runtime
34
+ type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
@@ -52,32 +52,184 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: Integrates cypress with rails
56
- email: info@miceportal.de
57
- executables:
58
- - cypress
55
+ - !ruby/object:Gem::Dependency
56
+ name: railties
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '3.2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '3.2'
69
+ description: Integrates cypress with rails or rack applications
70
+ email:
71
+ - info@miceportal.de
72
+ executables: []
59
73
  extensions: []
60
74
  extra_rdoc_files: []
61
75
  files:
62
76
  - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
63
79
  - CHANGELOG.md
64
80
  - Gemfile
65
- - Gemfile.lock
66
81
  - README.md
67
82
  - Rakefile
68
- - bin/cypress
69
83
  - cypress-on-rails.gemspec
70
84
  - lib/cypress-on-rails.rb
71
- - lib/cypress.rb
72
- - lib/cypress/configuration.rb
73
- - lib/cypress/middleware.rb
74
- - lib/cypress/railtie.rb
75
- - lib/cypress/runner.rb
76
- - lib/cypress/scenario_bank.rb
77
- - lib/cypress/scenario_context.rb
78
- - lib/cypress/version.rb
79
- - lib/generators/install_generator.rb
80
- homepage: http://github.com/konvenit/cypress-on-rails
85
+ - lib/cypress/smart_factory_wrapper.rb
86
+ - lib/cypress_dev.rb
87
+ - lib/cypress_dev/command_executor.rb
88
+ - lib/cypress_dev/configuration.rb
89
+ - lib/cypress_dev/middleware.rb
90
+ - lib/cypress_dev/railtie.rb
91
+ - lib/cypress_dev/simple_rails_factory.rb
92
+ - lib/cypress_dev/smart_factory_wrapper.rb
93
+ - lib/cypress_dev/version.rb
94
+ - lib/generators/cypress_dev/install_generator.rb
95
+ - lib/generators/cypress_dev/templates/config/initializers/cypress_dev.rb.erb
96
+ - lib/generators/cypress_dev/templates/spec/cypress.json
97
+ - lib/generators/cypress_dev/templates/spec/cypress/app_commands/clean.rb
98
+ - lib/generators/cypress_dev/templates/spec/cypress/app_commands/eval.rb
99
+ - lib/generators/cypress_dev/templates/spec/cypress/app_commands/factory_bot.rb
100
+ - lib/generators/cypress_dev/templates/spec/cypress/app_commands/scenarios/basic.rb
101
+ - lib/generators/cypress_dev/templates/spec/cypress/cypress_helper.rb
102
+ - lib/generators/cypress_dev/templates/spec/cypress/integration/on_rails_spec.js
103
+ - lib/generators/cypress_dev/templates/spec/cypress/support/commands.js
104
+ - lib/generators/cypress_dev/templates/spec/cypress/support/index.js
105
+ - lib/generators/cypress_dev/templates/spec/cypress/support/on-rails.js
106
+ - spec/cypress_dev/command_executor/cypress_helper.rb
107
+ - spec/cypress_dev/command_executor/test_command.rb
108
+ - spec/cypress_dev/command_executor/test_command_with_options.rb
109
+ - spec/cypress_dev/command_executor_spec.rb
110
+ - spec/cypress_dev/configuration_spec.rb
111
+ - spec/cypress_dev/middleware_spec.rb
112
+ - spec/cypress_dev/railtie_spec.rb
113
+ - spec/cypress_dev/smart_factory_wrapper_spec.rb
114
+ - spec/integrations/rails_3_2/.gitignore
115
+ - spec/integrations/rails_3_2/Gemfile
116
+ - spec/integrations/rails_3_2/README.rdoc
117
+ - spec/integrations/rails_3_2/Rakefile
118
+ - spec/integrations/rails_3_2/app/assets/stylesheets/application.css
119
+ - spec/integrations/rails_3_2/app/controllers/application_controller.rb
120
+ - spec/integrations/rails_3_2/app/controllers/welcome_controller.rb
121
+ - spec/integrations/rails_3_2/app/helpers/application_helper.rb
122
+ - spec/integrations/rails_3_2/app/models/post.rb
123
+ - spec/integrations/rails_3_2/app/views/layouts/application.html.erb
124
+ - spec/integrations/rails_3_2/app/views/welcome/index.html.erb
125
+ - spec/integrations/rails_3_2/bin/rails
126
+ - spec/integrations/rails_3_2/config.ru
127
+ - spec/integrations/rails_3_2/config/application.rb
128
+ - spec/integrations/rails_3_2/config/boot.rb
129
+ - spec/integrations/rails_3_2/config/environment.rb
130
+ - spec/integrations/rails_3_2/config/environments/development.rb
131
+ - spec/integrations/rails_3_2/config/environments/production.rb
132
+ - spec/integrations/rails_3_2/config/environments/test.rb
133
+ - spec/integrations/rails_3_2/config/initializers/backtrace_silencers.rb
134
+ - spec/integrations/rails_3_2/config/initializers/inflections.rb
135
+ - spec/integrations/rails_3_2/config/initializers/mime_types.rb
136
+ - spec/integrations/rails_3_2/config/initializers/secret_token.rb
137
+ - spec/integrations/rails_3_2/config/initializers/session_store.rb
138
+ - spec/integrations/rails_3_2/config/initializers/wrap_parameters.rb
139
+ - spec/integrations/rails_3_2/config/locales/en.yml
140
+ - spec/integrations/rails_3_2/config/routes.rb
141
+ - spec/integrations/rails_3_2/public/404.html
142
+ - spec/integrations/rails_3_2/public/422.html
143
+ - spec/integrations/rails_3_2/public/500.html
144
+ - spec/integrations/rails_3_2/public/favicon.ico
145
+ - spec/integrations/rails_3_2/public/robots.txt
146
+ - spec/integrations/rails_3_2/test.sh
147
+ - spec/integrations/rails_3_2/tmp/.keep
148
+ - spec/integrations/rails_3_2/vendor/.gitkeep
149
+ - spec/integrations/rails_4_2/.gitignore
150
+ - spec/integrations/rails_4_2/Gemfile
151
+ - spec/integrations/rails_4_2/README.rdoc
152
+ - spec/integrations/rails_4_2/Rakefile
153
+ - spec/integrations/rails_4_2/app/controllers/application_controller.rb
154
+ - spec/integrations/rails_4_2/app/controllers/welcome_controller.rb
155
+ - spec/integrations/rails_4_2/app/models/post.rb
156
+ - spec/integrations/rails_4_2/app/views/layouts/application.html.erb
157
+ - spec/integrations/rails_4_2/app/views/welcome/index.html.erb
158
+ - spec/integrations/rails_4_2/bin/bundle
159
+ - spec/integrations/rails_4_2/bin/rails
160
+ - spec/integrations/rails_4_2/bin/rake
161
+ - spec/integrations/rails_4_2/bin/setup
162
+ - spec/integrations/rails_4_2/config.ru
163
+ - spec/integrations/rails_4_2/config/application.rb
164
+ - spec/integrations/rails_4_2/config/boot.rb
165
+ - spec/integrations/rails_4_2/config/environment.rb
166
+ - spec/integrations/rails_4_2/config/environments/development.rb
167
+ - spec/integrations/rails_4_2/config/environments/production.rb
168
+ - spec/integrations/rails_4_2/config/environments/test.rb
169
+ - spec/integrations/rails_4_2/config/initializers/backtrace_silencers.rb
170
+ - spec/integrations/rails_4_2/config/initializers/cookies_serializer.rb
171
+ - spec/integrations/rails_4_2/config/initializers/filter_parameter_logging.rb
172
+ - spec/integrations/rails_4_2/config/initializers/inflections.rb
173
+ - spec/integrations/rails_4_2/config/initializers/mime_types.rb
174
+ - spec/integrations/rails_4_2/config/initializers/session_store.rb
175
+ - spec/integrations/rails_4_2/config/initializers/to_time_preserves_timezone.rb
176
+ - spec/integrations/rails_4_2/config/initializers/wrap_parameters.rb
177
+ - spec/integrations/rails_4_2/config/locales/en.yml
178
+ - spec/integrations/rails_4_2/config/routes.rb
179
+ - spec/integrations/rails_4_2/config/secrets.yml
180
+ - spec/integrations/rails_4_2/public/404.html
181
+ - spec/integrations/rails_4_2/public/422.html
182
+ - spec/integrations/rails_4_2/public/500.html
183
+ - spec/integrations/rails_4_2/public/favicon.ico
184
+ - spec/integrations/rails_4_2/public/robots.txt
185
+ - spec/integrations/rails_4_2/test.sh
186
+ - spec/integrations/rails_4_2/vendor/.keep
187
+ - spec/integrations/rails_5_2/.gitignore
188
+ - spec/integrations/rails_5_2/Gemfile
189
+ - spec/integrations/rails_5_2/README.md
190
+ - spec/integrations/rails_5_2/Rakefile
191
+ - spec/integrations/rails_5_2/app/controllers/application_controller.rb
192
+ - spec/integrations/rails_5_2/app/controllers/welcome_controller.rb
193
+ - spec/integrations/rails_5_2/app/jobs/application_job.rb
194
+ - spec/integrations/rails_5_2/app/models/post.rb
195
+ - spec/integrations/rails_5_2/app/views/layouts/application.html.erb
196
+ - spec/integrations/rails_5_2/app/views/welcome/index.html.erb
197
+ - spec/integrations/rails_5_2/bin/bundle
198
+ - spec/integrations/rails_5_2/bin/rails
199
+ - spec/integrations/rails_5_2/bin/rake
200
+ - spec/integrations/rails_5_2/bin/setup
201
+ - spec/integrations/rails_5_2/bin/update
202
+ - spec/integrations/rails_5_2/config.ru
203
+ - spec/integrations/rails_5_2/config/application.rb
204
+ - spec/integrations/rails_5_2/config/boot.rb
205
+ - spec/integrations/rails_5_2/config/credentials.yml.enc
206
+ - spec/integrations/rails_5_2/config/environment.rb
207
+ - spec/integrations/rails_5_2/config/environments/development.rb
208
+ - spec/integrations/rails_5_2/config/environments/production.rb
209
+ - spec/integrations/rails_5_2/config/environments/test.rb
210
+ - spec/integrations/rails_5_2/config/initializers/application_controller_renderer.rb
211
+ - spec/integrations/rails_5_2/config/initializers/backtrace_silencers.rb
212
+ - spec/integrations/rails_5_2/config/initializers/content_security_policy.rb
213
+ - spec/integrations/rails_5_2/config/initializers/cookies_serializer.rb
214
+ - spec/integrations/rails_5_2/config/initializers/filter_parameter_logging.rb
215
+ - spec/integrations/rails_5_2/config/initializers/inflections.rb
216
+ - spec/integrations/rails_5_2/config/initializers/mime_types.rb
217
+ - spec/integrations/rails_5_2/config/initializers/wrap_parameters.rb
218
+ - spec/integrations/rails_5_2/config/locales/en.yml
219
+ - spec/integrations/rails_5_2/config/master.key
220
+ - spec/integrations/rails_5_2/config/routes.rb
221
+ - spec/integrations/rails_5_2/public/404.html
222
+ - spec/integrations/rails_5_2/public/422.html
223
+ - spec/integrations/rails_5_2/public/500.html
224
+ - spec/integrations/rails_5_2/public/apple-touch-icon-precomposed.png
225
+ - spec/integrations/rails_5_2/public/apple-touch-icon.png
226
+ - spec/integrations/rails_5_2/public/favicon.ico
227
+ - spec/integrations/rails_5_2/public/robots.txt
228
+ - spec/integrations/rails_5_2/test.sh
229
+ - spec/integrations/rails_5_2/tmp/.keep
230
+ - spec/integrations/rails_5_2/vendor/.keep
231
+ - spec/spec_helper.rb
232
+ homepage: http://github.com/grantspeelman/cypress-on-rails
81
233
  licenses: []
82
234
  metadata: {}
83
235
  post_install_message:
@@ -91,13 +243,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
243
  version: '0'
92
244
  required_rubygems_version: !ruby/object:Gem::Requirement
93
245
  requirements:
94
- - - ">="
246
+ - - ">"
95
247
  - !ruby/object:Gem::Version
96
- version: '0'
248
+ version: 1.3.1
97
249
  requirements: []
98
250
  rubyforge_project: cypress-on-rails
99
- rubygems_version: 2.7.3
251
+ rubygems_version: 2.7.4
100
252
  signing_key:
101
253
  specification_version: 4
102
- summary: Integrates cypress with rails
254
+ summary: Integrates cypress with rails or rack applications
103
255
  test_files: []