It's "OS X", not "OSX".

(via @solnic)
openid
Marcin Kulik 11 years ago
parent 6ad82d0960
commit fe30c0282f

@ -88,7 +88,7 @@ class AsciicastDecorator < ApplicationDecorator
if text =~ /Linux/
'Linux'
elsif text =~ /Darwin/
'OSX'
'OS X'
else
text.split(' ', 2)[0]
end

@ -19,7 +19,7 @@
p
= link_to 'Start Recording', docs_path('getting-started'), class: 'btn btn-success'
p
' Supports Linux, Mac OSX and FreeBSD
' Supports Linux, Mac OS X and FreeBSD
section.even
.container

@ -87,7 +87,7 @@
h2 id="packaging" Packaging
p
' Currently Asciinema recorder can be installed on any Linux, OSX and
' Currently Asciinema recorder can be installed on any Linux, OS X and
FreeBSD system with <code>pip</code> (because it's a Python package at
its core). There are also native packages for Ubuntu and Arch Linux at
the moment.

@ -22,14 +22,14 @@ describe AsciicastDecorator do
it { should == 'Linux' }
end
context 'and the OS is OSX' do
context 'and the OS is OS X' do
before do
asciicast.user_agent =
"asciinema/0.9.7 CPython/2.7.4 " \
"Darwin/10.0.0-i386-64bit"
end
it { should == 'OSX' }
it { should == 'OS X' }
end
context 'and the OS is other' do
@ -57,7 +57,7 @@ describe AsciicastDecorator do
asciicast.uname = "Darwin local 10.3.0 Darwin Kernel Version 10.3.0"
end
it { should == 'OSX' }
it { should == 'OS X' }
end
context "and it's other" do

Loading…
Cancel
Save