Commit e174dacff98de119f63239344d1cf48007563ced
1 parent
23fd3b29
Exists in
colab
and in
4 other branches
Removes support for JS templates for unit tests
Showing
4 changed files
with
0 additions
and
33 deletions
Show diff stats
Gemfile
| @@ -116,9 +116,6 @@ group :development, :test do | @@ -116,9 +116,6 @@ group :development, :test do | ||
| 116 | 116 | ||
| 117 | # Mocks and stubs for javascript tests | 117 | # Mocks and stubs for javascript tests |
| 118 | gem 'sinon-rails' | 118 | gem 'sinon-rails' |
| 119 | - | ||
| 120 | - # JS templates for testing | ||
| 121 | - gem 'ejs' | ||
| 122 | end | 119 | end |
| 123 | 120 | ||
| 124 | # Acceptance tests | 121 | # Acceptance tests |
Gemfile.lock
| @@ -120,7 +120,6 @@ GEM | @@ -120,7 +120,6 @@ GEM | ||
| 120 | docile (1.1.5) | 120 | docile (1.1.5) |
| 121 | domain_name (0.5.24) | 121 | domain_name (0.5.24) |
| 122 | unf (>= 0.0.5, < 1.0.0) | 122 | unf (>= 0.0.5, < 1.0.0) |
| 123 | - ejs (1.1.1) | ||
| 124 | erubis (2.7.0) | 123 | erubis (2.7.0) |
| 125 | exception_notification (4.0.1) | 124 | exception_notification (4.0.1) |
| 126 | actionmailer (>= 3.0.4) | 125 | actionmailer (>= 3.0.4) |
| @@ -344,7 +343,6 @@ DEPENDENCIES | @@ -344,7 +343,6 @@ DEPENDENCIES | ||
| 344 | dalli (~> 2.7.0) | 343 | dalli (~> 2.7.0) |
| 345 | database_cleaner (~> 1.4.1) | 344 | database_cleaner (~> 1.4.1) |
| 346 | devise (~> 3.4.0) | 345 | devise (~> 3.4.0) |
| 347 | - ejs | ||
| 348 | exception_notification (~> 4.0.1) | 346 | exception_notification (~> 4.0.1) |
| 349 | factory_girl_rails (~> 4.5.0) | 347 | factory_girl_rails (~> 4.5.0) |
| 350 | google-analytics-rails (~> 0.0.6) | 348 | google-analytics-rails (~> 0.0.6) |
spec/javascripts/spec_helper.js.coffee
| @@ -1 +0,0 @@ | @@ -1 +0,0 @@ | ||
| 1 | -#= require_tree ./templates |
spec/javascripts/templates/metric_results.jst.ejs
| @@ -1,27 +0,0 @@ | @@ -1,27 +0,0 @@ | ||
| 1 | -<table class="table table-hover metric_results"> | ||
| 2 | - <thead> | ||
| 3 | - <tr> | ||
| 4 | - <th>Metric</th> | ||
| 5 | - <th>Value</th> | ||
| 6 | - <th>Weight</th> | ||
| 7 | - <th>Threshold</th> | ||
| 8 | - </tr> | ||
| 9 | - </thead> | ||
| 10 | - | ||
| 11 | - <tbody> | ||
| 12 | - <tr> | ||
| 13 | - <td><a onclick="new Module.Graphic('<%= container %>', '<%= metric_name %>', '<%= module_id %>')" id="metric_<%= module_id %>" data-remote="true" href=""><i class="icon-align-left"></i> Pain</a> | ||
| 14 | - </td> | ||
| 15 | - <td>4.20</td> | ||
| 16 | - <td>3.0</td> | ||
| 17 | - <td><span style="color: #00FF00">Excellent</span></td> | ||
| 18 | - </tr> | ||
| 19 | - <tr id="<%= container %>" style=""> | ||
| 20 | - <td colspan="4"> | ||
| 21 | - <span style="display: none;" id="loader_<%= container %>">Loading Data</span> | ||
| 22 | - <canvas height="150" width="300" id="<%= container %>" class="graphic_container" style="width: 300px; height: 150px;"></canvas> | ||
| 23 | - <span id="<%= container %>" style="display: none">There is only one point that should not generate a chart.</span> | ||
| 24 | - </td> | ||
| 25 | - </tr> | ||
| 26 | - </tbody> | ||
| 27 | -</table> | ||
| 28 | \ No newline at end of file | 0 | \ No newline at end of file |