spec/spec_helper.rb in commander-3.3.0 vs spec/spec_helper.rb in commander-4.0.0
- old
+ new
@@ -1,6 +1,7 @@
+$:.unshift File.dirname(__FILE__) + '/../lib'
require 'rubygems'
require 'commander/import'
require 'stringio'
# Mock terminal IO streams so we can spec against them
@@ -45,9 +46,9 @@
Commander::Runner.instance
end
def run *args
new_command_runner *args do
- program :help_formatter, Commander::HelpFormatter::Base
+ program :formatter, Commander::HelpFormatter::Base
end.run!
@output.string
end
\ No newline at end of file