Sha256: e0bb3ca2e51437e66735d69d205bc0afa85ab692c427cee7eef85d2c3116d115
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe TTY::System, '#platform' do subject { described_class } it { should respond_to(:windows?) } 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tty-0.0.11 | spec/tty/system/platform_spec.rb |
tty-0.0.10 | spec/tty/system/platform_spec.rb |