File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ def run
18
18
unless written_to_disk == builder . main_code
19
19
raise "Something's wrong: written_to_disk: #{ written_to_disk . inspect } "
20
20
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"
22
22
# 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 } " )
23
24
render locals : { runner : runner_asset }
24
25
end
25
26
Original file line number Diff line number Diff line change 1
1
require 'spec_helper'
2
2
3
3
feature 'In-browser specs runner' do
4
- scenario 'runs all specs' , :js do
4
+ scenario 'runs all specs' do
5
5
visit '/opal_spec'
6
+ puts page . body
6
7
page . should have_content ( 'example_spec ' )
7
8
page . should have_content ( 'requires_opal_spec ' )
8
9
page . should have_content ( 'subdirectory/other_spec ' )
9
10
page . should have_content ( '3 examples, 0 failures' )
10
11
end
11
12
12
- scenario "runs single spec file" , :js do
13
+ scenario "runs single spec file" do
13
14
visit '/opal_spec'
14
15
click_link 'subdirectory/other_spec'
16
+ puts page . body
15
17
16
18
page . should_not have_content ( 'example_spec ' )
17
19
page . should_not have_content ( 'requires_opal_spec ' )
You can’t perform that action at this time.
0 commit comments