routesjs-rails 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +20 -0
  3. data/README.md +21 -0
  4. data/Rakefile +34 -0
  5. data/lib/routesjs-rails.rb +3 -0
  6. data/lib/routesjs/formatter.rb +56 -0
  7. data/lib/routesjs/rails.rb +2 -0
  8. data/lib/routesjs/rails/engine.rb +6 -0
  9. data/lib/routesjs/rails/version.rb +5 -0
  10. data/lib/routesjs/routes.rb +9 -0
  11. data/lib/tasks/routesjs_tasks.rake +9 -0
  12. data/test/dummy/README.rdoc +28 -0
  13. data/test/dummy/Rakefile +6 -0
  14. data/test/dummy/app/assets/javascripts/application.js +14 -0
  15. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  16. data/test/dummy/app/controllers/application_controller.rb +5 -0
  17. data/test/dummy/app/controllers/home_controller.rb +4 -0
  18. data/test/dummy/app/helpers/application_helper.rb +2 -0
  19. data/test/dummy/app/views/home/index.html.erb +3 -0
  20. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  21. data/test/dummy/bin/bundle +3 -0
  22. data/test/dummy/bin/rails +4 -0
  23. data/test/dummy/bin/rake +4 -0
  24. data/test/dummy/config.ru +4 -0
  25. data/test/dummy/config/application.rb +22 -0
  26. data/test/dummy/config/boot.rb +5 -0
  27. data/test/dummy/config/database.yml +25 -0
  28. data/test/dummy/config/environment.rb +5 -0
  29. data/test/dummy/config/environments/development.rb +28 -0
  30. data/test/dummy/config/environments/production.rb +78 -0
  31. data/test/dummy/config/environments/test.rb +34 -0
  32. data/test/dummy/config/initializers/assets.rb +8 -0
  33. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  34. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  35. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  36. data/test/dummy/config/initializers/inflections.rb +16 -0
  37. data/test/dummy/config/initializers/mime_types.rb +4 -0
  38. data/test/dummy/config/initializers/session_store.rb +3 -0
  39. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  40. data/test/dummy/config/locales/en.yml +23 -0
  41. data/test/dummy/config/routes.rb +13 -0
  42. data/test/dummy/config/secrets.yml +22 -0
  43. data/test/dummy/log/development.log +4622 -0
  44. data/test/dummy/log/test.log +1039 -0
  45. data/test/dummy/public/404.html +67 -0
  46. data/test/dummy/public/422.html +67 -0
  47. data/test/dummy/public/500.html +66 -0
  48. data/test/dummy/public/favicon.ico +0 -0
  49. data/test/dummy/spec/teaspoon_env.rb +182 -0
  50. data/test/dummy/tmp/cache/assets/development/sprockets/06fe8c2fd8e66b4605fb8720f6f01fa1 +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/1015a631e7a66a0b078c820da841a4dc +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/1ef842e27a58c8d5c6c766a808769124 +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/38f92cfa1698a8913703ad40c946b0a5 +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/4f69580262ad653bc0809da19ad82711 +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/57f13cf7825213c3b1df69a76df722a9 +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/58c347f7e5c0045579ef085f41ae6d56 +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/69b7946c418b75e7ba78f9fc73d3e9b9 +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/6a2ef5706e101143d91085f790648f13 +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/6b41edb1d59348fc5f5a9be9e0070ba3 +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/7840a99f97a3c7111c6dd22a4c17ae1a +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/7cfb78f56f62208e304eaee5a4687ff5 +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/7ef98e1f987a1d927316b649e3b8f790 +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/9487c761e1ddfe7509f566400379f444 +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/9c8ef791c17d2b3f0a26d187f1c5cd88 +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/a1decc358031a7672d2d3545b45c8f15 +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/a70550f1a2c27e11c3188a48c01170f3 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/bc3e7b57c45ee11b581d32cb285f3ded +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/bc499c125dd2de53421b8a948c8777ee +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/bf36f67f2b6fbdcfe8d00c090481e768 +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/c09b0ea3f4c777394e24f505d23d6324 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/cb0accde733d1c9c2a0b096cb0f3c3f2 +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/cce1f28f0d1f5c2817e6eaf392bac615 +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/dca3f6a70d551aa519687c2fccd97176 +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/e280b920f9f8a02070c974eba18074c1 +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/e2e6a86be7c636f28c9b0311d987720a +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/e45a5d1eb39ff43af7c681e2a271a726 +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/e98bc73f3afc0368fc3c110e3305bb6e +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/ebfb2f47de67d2be33a5117afe306e80 +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/f72501aca20f34d765720253853e6105 +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  86. data/test/dummy/tmp/cache/assets/test/sprockets/06fe8c2fd8e66b4605fb8720f6f01fa1 +0 -0
  87. data/test/dummy/tmp/cache/assets/test/sprockets/1015a631e7a66a0b078c820da841a4dc +0 -0
  88. data/test/dummy/tmp/cache/assets/test/sprockets/1ef842e27a58c8d5c6c766a808769124 +0 -0
  89. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  90. data/test/dummy/tmp/cache/assets/test/sprockets/38f92cfa1698a8913703ad40c946b0a5 +0 -0
  91. data/test/dummy/tmp/cache/assets/test/sprockets/4f69580262ad653bc0809da19ad82711 +0 -0
  92. data/test/dummy/tmp/cache/assets/test/sprockets/57f13cf7825213c3b1df69a76df722a9 +0 -0
  93. data/test/dummy/tmp/cache/assets/test/sprockets/58c347f7e5c0045579ef085f41ae6d56 +0 -0
  94. data/test/dummy/tmp/cache/assets/test/sprockets/6a2ef5706e101143d91085f790648f13 +0 -0
  95. data/test/dummy/tmp/cache/assets/test/sprockets/6b41edb1d59348fc5f5a9be9e0070ba3 +0 -0
  96. data/test/dummy/tmp/cache/assets/test/sprockets/7cfb78f56f62208e304eaee5a4687ff5 +0 -0
  97. data/test/dummy/tmp/cache/assets/test/sprockets/9487c761e1ddfe7509f566400379f444 +0 -0
  98. data/test/dummy/tmp/cache/assets/test/sprockets/9c8ef791c17d2b3f0a26d187f1c5cd88 +0 -0
  99. data/test/dummy/tmp/cache/assets/test/sprockets/a70550f1a2c27e11c3188a48c01170f3 +0 -0
  100. data/test/dummy/tmp/cache/assets/test/sprockets/bc499c125dd2de53421b8a948c8777ee +0 -0
  101. data/test/dummy/tmp/cache/assets/test/sprockets/bf36f67f2b6fbdcfe8d00c090481e768 +0 -0
  102. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  103. data/test/dummy/tmp/cache/assets/test/sprockets/dca3f6a70d551aa519687c2fccd97176 +0 -0
  104. data/test/dummy/tmp/cache/assets/test/sprockets/e280b920f9f8a02070c974eba18074c1 +0 -0
  105. data/test/dummy/tmp/cache/assets/test/sprockets/e2e6a86be7c636f28c9b0311d987720a +0 -0
  106. data/test/dummy/tmp/cache/assets/test/sprockets/e45a5d1eb39ff43af7c681e2a271a726 +0 -0
  107. data/test/dummy/tmp/cache/assets/test/sprockets/e98bc73f3afc0368fc3c110e3305bb6e +0 -0
  108. data/test/dummy/tmp/cache/assets/test/sprockets/ebfb2f47de67d2be33a5117afe306e80 +0 -0
  109. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  110. data/test/routesjs/formatter_test.rb +65 -0
  111. data/test/routesjs/routes_test.rb +17 -0
  112. data/test/test_helper.rb +7 -0
  113. metadata +270 -0
@@ -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
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ 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
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ 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>
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
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ 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
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ 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>
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
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ 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
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ 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>
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,182 @@
1
+ # Set RAILS_ROOT and load the environment if it's not already loaded.
2
+ unless defined?(Rails)
3
+ ENV["RAILS_ROOT"] = File.expand_path("../../", __FILE__)
4
+ require File.expand_path("../../config/environment", __FILE__)
5
+ end
6
+
7
+ Teaspoon.configure do |config|
8
+ config.root = RoutesJS::Rails::Engine.root
9
+ # Determines where the Teaspoon routes will be mounted. Changing this to "/jasmine" would allow you to browse to
10
+ # `http://localhost:3000/jasmine` to run your tests.
11
+ #config.mount_at = "/teaspoon"
12
+
13
+ # Specifies the root where Teaspoon will look for files. If you're testing an engine using a dummy application it can
14
+ # be useful to set this to your engines root (e.g. `Teaspoon::Engine.root`).
15
+ # Note: Defaults to `Rails.root` if nil.
16
+ #config.root = nil
17
+
18
+ # Paths that will be appended to the Rails assets paths
19
+ # Note: Relative to `config.root`.
20
+ #config.asset_paths = ["spec/javascripts", "spec/javascripts/stylesheets"]
21
+
22
+ # Fixtures are rendered through a controller, which allows using HAML, RABL/JBuilder, etc. Files in these paths will
23
+ # be rendered as fixtures.
24
+ #config.fixture_paths = ["spec/javascripts/fixtures"]
25
+
26
+ # SUITES
27
+ #
28
+ # You can modify the default suite configuration and create new suites here. Suites are isolated from one another.
29
+ #
30
+ # When defining a suite you can provide a name and a block. If the name is left blank, :default is assumed. You can
31
+ # omit various directives and the ones defined in the default suite will be used.
32
+ #
33
+ # To run a specific suite
34
+ # - in the browser: http://localhost/teaspoon/[suite_name]
35
+ # - with the rake task: rake teaspoon suite=[suite_name]
36
+ # - with the cli: teaspoon --suite=[suite_name]
37
+ config.suite do |suite|
38
+
39
+ # Specify the framework you would like to use. This allows you to select versions, and will do some basic setup for
40
+ # you -- which you can override with the directives below. This should be specified first, as it can override other
41
+ # directives.
42
+ # Note: If no version is specified, the latest is assumed.
43
+ #
44
+ # Available: jasmine[1.3.1, 2.0.0], mocha[1.10.0, 1.17.1] qunit[1.12.0, 1.14.0]
45
+ suite.use_framework :jasmine, "1.3.1"
46
+
47
+ # Specify a file matcher as a regular expression and all matching files will be loaded when the suite is run. These
48
+ # files need to be within an asset path. You can add asset paths using the `config.asset_paths`.
49
+ #suite.matcher = "{spec/javascripts,app/assets}/**/*_spec.{js,js.coffee,coffee}"
50
+
51
+ # This suites spec helper, which can require additional support files. This file is loaded before any of your test
52
+ # files are loaded.
53
+ #suite.helper = "spec_helper"
54
+
55
+ # The core Teaspoon javascripts. It's recommended to include only the base files here, as you can require support
56
+ # libraries from your spec helper.
57
+ # Note: For CoffeeScript files use `"teaspoon/jasmine"` etc.
58
+ #
59
+ # Available: teaspoon-jasmine, teaspoon-mocha, teaspoon-qunit
60
+ #suite.javascripts = ["jasmine/1.3.1", "teaspoon-jasmine"]
61
+
62
+ # You can include your own stylesheets if you want to change how Teaspoon looks.
63
+ # Note: Spec related CSS can and should be loaded using fixtures.
64
+ #suite.stylesheets = ["teaspoon"]
65
+
66
+ # Partial to be rendered in the head tag of the runner. You can use the provided ones or define your own by creating
67
+ # a `_boot.html.erb` in your fixtures path, and adjust the config to `"/boot"` for instance.
68
+ #
69
+ # Available: boot, boot_require_js
70
+ #suite.boot_partial = "boot"
71
+
72
+ # Partial to be rendered in the body tag of the runner. You can define your own to create a custom body structure.
73
+ #suite.body_partial = "body"
74
+
75
+ # Assets to be ignored when generating coverage reports. Accepts an array of filenames or regular expressions. The
76
+ # default excludes assets from vendor, gems and support libraries.<br/><br/>
77
+ #suite.no_coverage = [%r{/lib/ruby/gems/}, %r{/vendor/assets/}, %r{/support/}, %r{/(.+)_helper.}]
78
+
79
+ # Hooks allow you to use `Teaspoon.hook("fixtures")` before, after, or during your spec run. This will make a
80
+ # synchronous Ajax request to the server that will call all of the blocks you've defined for that hook name.
81
+ #suite.hook :fixtures, proc{ }
82
+
83
+ end
84
+
85
+ # Example suite. Since we're just filtering to files already within the root test/javascripts, these files will also
86
+ # be run in the default suite -- but can be focused into a more specific suite.
87
+ #config.suite :targeted do |suite|
88
+ # suite.matcher = "test/javascripts/targeted/*_test.{js,js.coffee,coffee}"
89
+ #end
90
+
91
+ # CONSOLE RUNNER SPECIFIC
92
+ #
93
+ # These configuration directives are applicable only when running via the rake task or command line interface. These
94
+ # directives can be overridden using the command line interface arguments or with ENV variables when using the rake
95
+ # task.
96
+ #
97
+ # Command Line Interface:
98
+ # teaspoon --driver=phantomjs --server-port=31337 --fail-fast=true --format=junit --suite=my_suite /spec/file_spec.js
99
+ #
100
+ # Rake:
101
+ # teaspoon DRIVER=phantomjs SERVER_PORT=31337 FAIL_FAST=true FORMATTERS=junit suite=my_suite
102
+
103
+ # Specify which headless driver to use. Supports PhantomJS and Selenium Webdriver.
104
+ #
105
+ # Available: phantomjs, selenium
106
+ # PhantomJS: https://github.com/modeset/teaspoon/wiki/Using-PhantomJS
107
+ # Selenium Webdriver: https://github.com/modeset/teaspoon/wiki/Using-Selenium-WebDriver
108
+ #config.driver = "phantomjs"
109
+
110
+ # Specify additional options for the driver.
111
+ #
112
+ # PhantomJS: https://github.com/modeset/teaspoon/wiki/Using-PhantomJS
113
+ # Selenium Webdriver: https://github.com/modeset/teaspoon/wiki/Using-Selenium-WebDriver
114
+ #config.driver_options = nil
115
+
116
+ # Specify the timeout for the driver. Specs are expected to complete within this time frame or the run will be
117
+ # considered a failure. This is to avoid issues that can arise where tests stall.
118
+ #config.driver_timeout = 180
119
+
120
+ # Specify a server to use with Rack (e.g. thin, mongrel). If nil is provided Rack::Server is used.
121
+ #config.server = nil
122
+
123
+ # Specify a port to run on a specific port, otherwise Teaspoon will use a random available port.
124
+ #config.server_port = nil
125
+
126
+ # Timeout for starting the server in seconds. If your server is slow to start you may have to bump this, or you may
127
+ # want to lower this if you know it shouldn't take long to start.
128
+ #config.server_timeout = 20
129
+
130
+ # Force Teaspoon to fail immediately after a failing suite. Can be useful to make Teaspoon fail early if you have
131
+ # several suites, but in environments like CI this may not be desirable.
132
+ #config.fail_fast = true
133
+
134
+ # Specify the formatters to use when outputting the results.
135
+ # Note: Output files can be specified by using `"junit>/path/to/output.xml"`.
136
+ #
137
+ # Available: dot, documentation, clean, json, junit, pride, snowday, swayze_or_oprah, tap, tap_y, teamcity
138
+ #config.formatters = ["dot"]
139
+
140
+ # Specify if you want color output from the formatters.
141
+ #config.color = true
142
+
143
+ # Teaspoon pipes all console[log/debug/error] to $stdout. This is useful to catch places where you've forgotten to
144
+ # remove them, but in verbose applications this may not be desirable.
145
+ #config.suppress_log = false
146
+
147
+ # COVERAGE REPORTS / THRESHOLD ASSERTIONS
148
+ #
149
+ # Coverage reports requires Istanbul (https://github.com/gotwarlost/istanbul) to add instrumentation to your code and
150
+ # display coverage statistics.
151
+ #
152
+ # Coverage configurations are similar to suites. You can define several, and use different ones under different
153
+ # conditions.
154
+ #
155
+ # To run with a specific coverage configuration
156
+ # - with the rake task: rake teaspoon USE_COVERAGE=[coverage_name]
157
+ # - with the cli: teaspoon --coverage=[coverage_name]
158
+
159
+ # Specify that you always want a coverage configuration to be used.
160
+ #config.use_coverage = nil
161
+
162
+ config.coverage do |coverage|
163
+
164
+ # Which coverage reports Instanbul should generate. Correlates directly to what Istanbul supports.
165
+ #
166
+ # Available: text-summary, text, html, lcov, lcovonly, cobertura, teamcity
167
+ #coverage.reports = ["text-summary", "html"]
168
+
169
+ # The path that the coverage should be written to - when there's an artifact to write to disk.
170
+ # Note: Relative to `config.root`.
171
+ #coverage.output_dir = "coverage"
172
+
173
+ # Various thresholds requirements can be defined, and those thresholds will be checked at the end of a run. If any
174
+ # aren't met the run will fail with a message. Thresholds can be defined as a percentage (0-100), or nil.
175
+ #coverage.statements = nil
176
+ #coverage.functions = nil
177
+ #coverage.branches = nil
178
+ #coverage.lines = nil
179
+
180
+ end
181
+
182
+ end