lib/soaspec/exe_helpers.rb in soaspec-0.0.43 vs lib/soaspec/exe_helpers.rb in soaspec-0.0.44
- old
+ new
@@ -49,11 +49,11 @@
task :default => :spec # This runs the 'spec' task by default when no task is mentioned. E.g., if only `rake` is typed
RAKE
end
- def rake__virtual_content
+ def rake_virtual_content
<<-EOF
# The list of task for a Rake file can be seen with `rake -T`
require 'rspec/core/rake_task' # See See https://relishapp.com/rspec/rspec-core/docs/command-line/rake-task for details
# This runs `rspec` command with the following options. Type `rake spec` to run this task
@@ -68,10 +68,10 @@
task :default => :spec # This runs the 'spec' task by default when no task is mentioned. E.g., if only `rake` is typed
desc 'Start virtual web service'
task :start_test_server do
- ENV['test_server_pid'] = Process.spawn('ruby', 'spec/test_server.rb').to_s #, err: "/dev/null").to_s - TODO: use to turn off debugging
+ ENV['test_server_pid'] = Process.spawn('ruby', 'spec/test_server.rb', err: %w[logs/test_server.log w]).to_s
puts 'Running test server at pid ' + ENV['test_server_pid']
end
EOF
end
\ No newline at end of file