spec/tty/system/platform_spec.rb in tty-0.0.9 vs spec/tty/system/platform_spec.rb in tty-0.0.10

- old
+ new

@@ -9,21 +9,19 @@ it { should respond_to(:unix?) } it { should respond_to(:which) } + it { should respond_to(:exists?) } + + it { should respond_to(:editor) } + it 'checks if windows' do RbConfig::CONFIG.stub(:[]).with('host_os').and_return 'windows' subject.windows?.should be_true end it 'checks if unix' do RbConfig::CONFIG.stub(:[]).with('host_os').and_return 'darwin' subject.unix?.should be_true - end - - it 'delegates to which' do - command = 'ruby' - TTY::System::Which.should_receive(:new).with(command) - subject.which(command) end end