spec/integration/assets/assets_spec.rb in hanami-2.1.0.rc3 vs spec/integration/assets/assets_spec.rb in hanami-2.1.0
- old
+ new
@@ -131,16 +131,16 @@
specify "the slice's assets are available in its own and distinct `assets` component" do
compile_assets!
output = Main::Slice["views.posts.show"].call.to_s
- expect(output).to match(%r{<link href="/assets/main/app-[A-Z0-9]{8}.css" type="text/css" rel="stylesheet">})
- expect(output).to match(%r{<script src="/assets/main/app-[A-Z0-9]{8}.js" type="text/javascript"></script>})
+ expect(output).to match(%r{<link href="/assets/_main/app-[A-Z0-9]{8}.css" type="text/css" rel="stylesheet">})
+ expect(output).to match(%r{<script src="/assets/_main/app-[A-Z0-9]{8}.js" type="text/javascript"></script>})
assets = Main::Slice["assets"]
- expect(assets["app.css"].to_s).to match(%r{/assets/main/app-[A-Z0-9]{8}.css})
- expect(assets["app.js"].to_s).to match(%r{/assets/main/app-[A-Z0-9]{8}.js})
+ expect(assets["app.css"].to_s).to match(%r{/assets/_main/app-[A-Z0-9]{8}.css})
+ expect(assets["app.js"].to_s).to match(%r{/assets/_main/app-[A-Z0-9]{8}.js})
end
end
describe "slice without assets" do
def before_prepare