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 8e07f9d

Browse files
committedMay 20, 2015
[snapshot]
1 parent faf93bf commit 8e07f9d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

Diff for: ‎app/controllers/opal_spec_controller.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ def run
2121
runner_asset = sprockets.load "file://#{runner.to_s}?type=application/javascript"
2222
# runner_asset = sprockets.find_asset(logical_path) or raise("can't find asset #{logical_path}")
2323
runner_asset or raise("can't find asset #{logical_path}")
24-
render locals: { runner: runner_asset, runner_code: sprockets.load(runner_asset.included.last).to_s }
24+
runner_code = []
25+
runner_code << sprockets.load(runner_asset.included.last).to_s
26+
runner_code << Opal::Processor.load_asset_code(sprockets, runner.logical_path)
27+
render locals: { runner: runner_asset, runner_code: runner_code }
2528
end
2629

2730

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

-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@
1818
<script src="<%= path_to_javascript(a.logical_path, debug: true) %>"></script>
1919
<% end %>
2020
<%= javascript_tag runner_code %>
21-
<%= javascript_tag Opal::Processor.load_asset_code(sprockets, runner.logical_path) %>
2221

0 commit comments

Comments
 (0)
Please sign in to comment.