Commit e174dacff98de119f63239344d1cf48007563ced

Authored by Rafael Manzo
1 parent 23fd3b29

Removes support for JS templates for unit tests

Gemfile
... ... @@ -116,9 +116,6 @@ group :development, :test do
116 116  
117 117 # Mocks and stubs for javascript tests
118 118 gem 'sinon-rails'
119   -
120   - # JS templates for testing
121   - gem 'ejs'
122 119 end
123 120  
124 121 # Acceptance tests
... ...
Gemfile.lock
... ... @@ -120,7 +120,6 @@ GEM
120 120 docile (1.1.5)
121 121 domain_name (0.5.24)
122 122 unf (>= 0.0.5, < 1.0.0)
123   - ejs (1.1.1)
124 123 erubis (2.7.0)
125 124 exception_notification (4.0.1)
126 125 actionmailer (>= 3.0.4)
... ... @@ -344,7 +343,6 @@ DEPENDENCIES
344 343 dalli (~> 2.7.0)
345 344 database_cleaner (~> 1.4.1)
346 345 devise (~> 3.4.0)
347   - ejs
348 346 exception_notification (~> 4.0.1)
349 347 factory_girl_rails (~> 4.5.0)
350 348 google-analytics-rails (~> 0.0.6)
... ...
spec/javascripts/spec_helper.js.coffee
... ... @@ -1 +0,0 @@
1   -#= require_tree ./templates
spec/javascripts/templates/metric_results.jst.ejs
... ... @@ -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 0 \ No newline at end of file