Sha256: e7d6205818395a45e8464014f2c5b3c25610a6b679972c6ad7a2141053bf4c08
Contents?: true
Size: 297 Bytes
Versions: 2
Compression:
Stored size: 297 Bytes
Contents
# frozen_string_literal: true RSpec.describe TTY::Platform, '#to_s' do it "display platform information" do allow(RbConfig::CONFIG).to receive(:[]).with('arch').and_return('i686-darwin8.10.1') platform = TTY::Platform.new expect(platform.to_s).to eq('i686-darwin-8.10.1') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tty-platform-0.2.1 | spec/unit/to_s_spec.rb |
tty-platform-0.2.0 | spec/unit/to_s_spec.rb |