spec/spec_helper.rb in optionsful-0.1.7 vs spec/spec_helper.rb in optionsful-0.1.8

- old
+ new

@@ -71,9 +71,15 @@ def http_options_request(path) complex_env = mock_env({"REQUEST_METHOD" => "OPTIONS", "PATH_INFO" => path }) response = Baurets::Optionsful::Server.new(app).call(complex_env) end + def http_get_request(path) + complex_env = mock_env({"REQUEST_METHOD" => "GET", "PATH_INFO" => path }) + response = Baurets::Optionsful::Documentator.new(app).call(complex_env) + end + + def allows?(headers, method) headers["Allow"].include?(method) end