method
write_generated_options
1.2.8 -
Show latest stable
- Class:
Spec::Runner::OptionParser
write_generated_options(options_file)protected
No documentation available.
# File lib/spec/runner/option_parser.rb, line 178
def write_generated_options(options_file)
File.open(options_file, 'w') do |io|
io.puts @argv.join("\n")
end
@out_stream.puts "\nOptions written to #{options_file}. You can now use these options with:"
@out_stream.puts "spec --options #{options_file}"
@options.examples_should_not_be_run
end