Sha256: 5b9a4d606a94ef4e8324f3ae2807c6f099078a5b6f30e3adec7b97df7153e3eb

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

# coding: utf-8

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

1 entries across 1 versions & 1 rubygems

Version Path
tty-platform-0.1.0 spec/unit/to_s_spec.rb