Skip to content

Commit

Permalink
Clean up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Mar 9, 2017
1 parent 13d7534 commit 852f52f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/test_rack_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,14 @@ def setup
end

def test_default_port_when_no_config_file
options = {}
conf = Rack::Handler::Puma.config(->{}, options)
conf = Rack::Handler::Puma.config(->{}, @options)
conf.load

assert_equal ["tcp://0.0.0.0:9292"], conf.options[:binds]
end

def test_config_wins_over_default
file_port = 6001
@options = {}

Dir.mktmpdir do |d|
Dir.chdir(d) do
Expand All @@ -147,7 +145,6 @@ def test_user_port_wins_over_default
def test_user_port_wins_over_config
user_port = 5001
file_port = 6001
@options = {}

Dir.mktmpdir do |d|
Dir.chdir(d) do
Expand Down

0 comments on commit 852f52f

Please sign in to comment.