Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 01f600d

Browse files
committedMay 19, 2015
[snapshot]
1 parent f6da4a9 commit 01f600d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed
 

Diff for: ‎.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ rvm:
55
- 1.9.3
66
- 2.0.0
77
- 2.1.1
8+
- '2.2'
89

910
before_script:
1011
- "export DISPLAY=:99.0"

Diff for: ‎app/controllers/opal_spec_controller.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class OpalSpecController < ActionController::Base
66
helper_method :spec_files, :pattern, :clean_spec_path, :runner_name
7-
helper_method :check_errors_for
7+
helper_method :check_errors_for, :builder
88

99
def run
1010
logical_path = builder.runner_logical_path
@@ -18,6 +18,7 @@ def run
1818
unless written_to_disk == builder.main_code
1919
raise "Something's wrong: written_to_disk: #{written_to_disk.inspect}"
2020
end
21+
render locals: { runner: sprockets.find_asset(logical_path) || raise("can't find asset #{logical_path}") }
2122
end
2223

2324

Diff for: ‎app/views/opal_spec/run.html.erb

+7-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@
1212
<% end %>
1313
</ul>
1414

15-
<%= javascript_include_tag runner_name, debug: true %>
15+
<%#= javascript_include_tag runner_name, debug: true %>
16+
17+
<% runner.to_a.each do |a| %>
18+
<script src="<%= path_to_javascript(a.logical_path, debug: true) %>"></script>
19+
<% end %>
20+
<%= javascript_tag Opal::Processor.load_asset_code(Rails.application.assets, runner.logical_path) %>
21+

0 commit comments

Comments
 (0)
Please sign in to comment.