spec/lib/hackpad/cli/runner_spec.rb in hackpad-cli-0.1.0 vs spec/lib/hackpad/cli/runner_spec.rb in hackpad-cli-0.1.1

- old
+ new

@@ -24,28 +24,35 @@ cli.shell.mute do cli.search 'xxx' end end - it 'calls the list method in client class' do - Object.stub(:list) + it 'calls the workspaces method in client class' do + Object.stub(:workspaces) cli.shell.mute do - cli.list + cli.workspaces end end + it 'calls the default method in client class' do + Object.stub(:default) + cli.shell.mute do + cli.default + end + end + it 'calls the list method in client class' do Object.stub(:list) cli.shell.mute do cli.list end end - it 'calls the check method in client class' do - Object.stub(:check) + it 'calls the getnew method in client class' do + Object.stub(:getnew) cli.shell.mute do - cli.check + cli.getnew end end it 'calls the version method in client class' do STDOUT.stub(:puts).with(Hackpad::Cli::VERSION) @@ -63,16 +70,9 @@ it 'calls the show method in client class' do Object.stub(:show) cli.shell.mute do cli.show 'pad', 'md' - end - end - - it 'calls the colors method in client class' do - String.stub(:color_matrix).with(' xoxo ') - cli.shell.mute do - cli.colors end end end