Skip to content

Commit 67ed824

Browse files
committed
Extend LOAD_PATH in specs for easier require
1 parent b01399e commit 67ed824

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

spec/rack/reverse_proxy_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
1+
require 'spec_helper'
22

33
RSpec.describe Rack::ReverseProxy do
44
include Rack::Test::Methods

spec/spec_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
require 'rack/test'
55
require 'webmock/rspec'
66

7+
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
8+
$LOAD_PATH << File.join(File.dirname(__FILE__))
9+
710
RSpec.configure do |config|
811
config.expect_with :rspec do |expectations|
912
# This option will default to `true` in RSpec 4.

0 commit comments

Comments
 (0)