toadhopper-sinatra 0.5 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/sinatra/toadhopper.rb +2 -1
- data/test/test_report_error_to_hoptoad.rb +4 -1
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/sinatra/toadhopper.rb
CHANGED
@@ -3,7 +3,6 @@ require 'rubygems'
|
|
3
3
|
require 'test/unit'
|
4
4
|
require 'sinatra/base'
|
5
5
|
require 'rack/test'
|
6
|
-
require 'toadhopper/test/methods'
|
7
6
|
|
8
7
|
$:.unshift File.dirname(__FILE__) + "/../lib"
|
9
8
|
require 'sinatra/toadhopper'
|
@@ -69,4 +68,8 @@ class TestReportErrorToHoptoad < Test::Unit::TestCase
|
|
69
68
|
assert_equal({:key => 42, :data => {"id" => "sessionid"}}, @options[:session])
|
70
69
|
end
|
71
70
|
|
71
|
+
def test_header_options
|
72
|
+
assert_equal "toadhopper-sinatra", @header_options['X-Hoptoad-Client-Name']
|
73
|
+
end
|
74
|
+
|
72
75
|
end
|