summaryrefslogtreecommitdiff
path: root/test/functional/sample_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/sample_test.rb')
-rw-r--r--test/functional/sample_test.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/functional/sample_test.rb b/test/functional/sample_test.rb
index 2b49527..412555e 100644
--- a/test/functional/sample_test.rb
+++ b/test/functional/sample_test.rb
@@ -1,3 +1,4 @@
+require 'English'
require 'support/functional_test'
class SampleTest < FunctionalTest
@@ -49,7 +50,7 @@ class SampleTest < FunctionalTest
end
def lookup(address)
- run_command %Q(curl localhost:6425 #{curl_opts} -d "address=#{address}")
+ run_command %(curl localhost:6425 #{curl_opts} -d "address=#{address}")
end
def curl_opts
@@ -57,13 +58,13 @@ class SampleTest < FunctionalTest
end
def open_files_count
- run_command(%Q(lsof | grep " #{nickserver_pid} " | wc -l)).to_i
+ run_command(%(lsof | grep " #{nickserver_pid} " | wc -l)).to_i
end
def run_command(command)
`#{command} 2>&1`.tap do |out|
- assert ($?.exitstatus == 0),
- "failed to run '#{command}':\n #{out}"
+ assert ($CHILD_STATUS.exitstatus == 0),
+ "failed to run '#{command}':\n #{out}"
end
end
end