test/helpers_test.rb in sinatra-assetpack-0.2.8 vs test/helpers_test.rb in sinatra-assetpack-0.3.0
- old
+ new
@@ -15,20 +15,16 @@
test "img existing (development)" do
app.stubs(:development?).returns(true)
get '/helper/email'
assert body =~ %r{src='/images/email.png'}
- assert body =~ %r{width='16'}
- assert body =~ %r{height='16'}
end
test "img existing (production)" do
app.stubs(:development?).returns(false)
get '/helper/email'
assert body =~ %r{src='/images/email.[a-f0-9]{32}.png'}
- assert body =~ %r{width='16'}
- assert body =~ %r{height='16'}
end
test "css" do
re = Array.new
get '/helper/css/app'; re << body