test/unit_test.rb in sinatra-assetpack-0.2.2 vs test/unit_test.rb in sinatra-assetpack-0.2.3

- old
+ new

@@ -67,12 +67,12 @@ end test "helpers" do app.settings.stubs(:environment).returns(:development) get '/index.html' - assert body =~ /<script src='\/js\/hello.8ac1b67adf7fa68c1c3b81791b3e116c.js'><\/script>/ - assert body =~ /<script src='\/js\/hi.24dcf1d7835ed64640370d52967631f8.js'><\/script>/ + assert body =~ /<script src='\/js\/hello.[a-f0-9]{32}.js'><\/script>/ + assert body =~ /<script src='\/js\/hi.[a-f0-9]{32}.js'><\/script>/ end test "helpers in production (compressed html thingie)" do app.settings.stubs(:environment).returns(:production) get '/index.html' @@ -106,10 +106,10 @@ end test "helpers css (development)" do app.settings.stubs(:environment).returns(:development) get '/helpers/css' - assert body =~ %r{link rel='stylesheet' href='/css/screen.efa279aa02235f0a587791c1ac5d99b9.css' media='screen'} + assert body =~ %r{link rel='stylesheet' href='/css/screen.[a-f0-9]{32}.css' media='screen'} end test "helpers css (production)" do app.settings.stubs(:environment).returns(:production) get '/helpers/css'