Skip to content

Commit

Permalink
remove useless to_path implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Aug 25, 2015
1 parent e0ac329 commit ed0d8c5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions lib/rack/file.rb
Expand Up @@ -16,11 +16,8 @@ class File
ALLOW_HEADER = ALLOWED_VERBS.join(', ')

attr_accessor :root
attr_accessor :path
attr_accessor :cache_control

alias :to_path :path

def initialize(root, headers={}, default_mime = 'text/plain')
@root = root
@headers = headers
Expand Down
6 changes: 0 additions & 6 deletions test/spec_sendfile.rb
Expand Up @@ -5,12 +5,6 @@
require 'rack/mock'
require 'tmpdir'

describe Rack::File do
it "respond to #to_path" do
Rack::File.new(Dir.pwd).must_respond_to :to_path
end
end

describe Rack::Sendfile do
def sendfile_body
FileUtils.touch File.join(Dir.tmpdir, "rack_sendfile")
Expand Down

0 comments on commit ed0d8c5

Please sign in to comment.