Skip to content

Commit 25136a8

Browse files
committed
Update location of script
1 parent ed679da commit 25136a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/spec/requests/caching_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
describe "an asset" do
2222
let(:index_body) { Net::HTTP.get(index_uri) }
2323
let(:index_page) { Capybara.string(index_body) }
24-
let(:asset_path) { index_page.first('body script', visible: false)[:src] }
24+
let(:asset_path) { index_page.first('head script', visible: false)[:src] }
2525
let(:asset_uri) { URI.join(index_uri, asset_path) }
2626
let(:one_year_s) { 365 * 24 * 60 * 60 }
2727

0 commit comments

Comments
 (0)