sssmoke 0.0.7 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,7 @@ module Sssmoke
19
19
  end
20
20
  end
21
21
 
22
- configure { set :port, 8888 }
22
+ configure { set :port => 8888, :show_exceptions => false }
23
23
  error(404) { [404, "404 - Page not found"] }
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Sssmoke
2
- VERSION = "0.0.7"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -72,4 +72,11 @@ class SecurityTest < SssmokeTest
72
72
  get '/../simple'
73
73
  assert_equal 404, last_response.status
74
74
  end
75
+
76
+ def test_hide_exceptions
77
+ ENV['filename'] = 'test/data/'
78
+ get '/error'
79
+ assert_equal 500, last_response.status
80
+ assert_equal '<h1>Internal Server Error</h1>', last_response.body
81
+ end
75
82
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sssmoke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: