test/scientist_test.rb in boson-0.2.0 vs test/scientist_test.rb in boson-0.2.1

- old
+ new

@@ -28,11 +28,11 @@ def command(hash, args) hash = {:name=>'blah', :lib=>'bling', :options=>{:force=>:boolean, :level=>2}}.merge(hash) @cmd = Command.new hash @cmd.instance_variable_set("@file_parsed_args", true) if hash[:file_parsed_args] - Scientist.create_option_command(@opt_cmd, @cmd) + Scientist.redefine_command(@opt_cmd, @cmd) @opt_cmd.send(hash[:name], *args) end def command_with_arg_size(*args) command({:args=>2}, args) @@ -130,10 +130,10 @@ test "with option error" do capture_stderr { command_with_args('a1 -l') }.should =~ /Error.*level/ end test "with unexpected error in translation" do - Scientist.expects(:parse_command_options).raises("unexpected") + Scientist.expects(:option_command).raises("unexpected") capture_stderr { command_with_args('a1') }.should =~ /Error.*unexpected/ end test "with unexpected error in render" do Scientist.expects(:render?).raises("unexpected")