spec/spec_helper.rb in optionsful-0.1.1 vs spec/spec_helper.rb in optionsful-0.1.2
- old
+ new
@@ -1,6 +1,6 @@
-require File.join(File.dirname(__FILE__), '..', 'lib', 'baurets','optionsful.rb')
+require File.join(File.dirname(__FILE__), '..', 'lib','optionsful.rb')
require 'rubygems'
require 'sinatra'
require 'rack/test'
require 'rack'
@@ -39,11 +39,11 @@
def fake_app
app = Rack::Builder.new {
use Rack::CommonLogger
use Rack::ShowExceptions
- use Baurets::Optionsful
+ use Optionsful
map "/lobster" do
use Rack::Lint
run Rack::Lobster.new
end
}
@@ -53,10 +53,10 @@
FAKE_ENV.merge!(options)
end
def http_options_request(path)
complex_env = mock_env({"REQUEST_METHOD" => "OPTIONS", "PATH_INFO" => path })
- response = Baurets::Optionsful.new(app).call(complex_env)
+ response = Optionsful.new(app).call(complex_env)
response
end
def allows?(headers, method)
headers["Allow"].include?(method)