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 bc63d07

Browse files
committedMay 19, 2015
[snapshot]
1 parent f0146d8 commit bc63d07

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
 

Diff for: ‎app/controllers/opal_spec_controller.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ 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-
runner_asset = sprockets.load "file://#{runner.to_s}?type=application/javascript" or raise("can't find asset #{logical_path}")
21+
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}")
23+
runner_asset or raise("can't find asset #{logical_path}")
2324
render locals: { runner: runner_asset}
2425
end
2526

Diff for: ‎spec/integration/in_browser_specs_spec.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
require 'spec_helper'
22

33
feature 'In-browser specs runner' do
4-
scenario 'runs all specs', :js do
4+
scenario 'runs all specs' do
55
visit '/opal_spec'
6+
puts page.body
67
page.should have_content('example_spec ')
78
page.should have_content('requires_opal_spec ')
89
page.should have_content('subdirectory/other_spec ')
910
page.should have_content('3 examples, 0 failures')
1011
end
1112

12-
scenario "runs single spec file", :js do
13+
scenario "runs single spec file" do
1314
visit '/opal_spec'
1415
click_link 'subdirectory/other_spec'
16+
puts page.body
1517

1618
page.should_not have_content('example_spec ')
1719
page.should_not have_content('requires_opal_spec ')

0 commit comments

Comments
 (0)
Please sign in to comment.