Skip to content

Commit

Permalink
changed the sdk_version to ios_version
Browse files Browse the repository at this point in the history
  • Loading branch information
Marin Usalj committed Sep 26, 2012
1 parent bb88f3b commit 6608995
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -192,7 +192,7 @@ Examples:
# :portrait
> Device.simulator?
# true
> Device.sdk_version
> Device.ios_version
# "6.0"
> Device.retina?
# false
Expand Down
2 changes: 1 addition & 1 deletion motion/core/device.rb
Expand Up @@ -41,7 +41,7 @@ def simulator?

# Returns the IOS SDK version currently running (i.e. "5.1" or "6.0" etc)
# @return [String] the IOS SDK version currently running
def sdk_version
def ios_version
UIDevice.currentDevice.systemVersion
end

Expand Down
4 changes: 2 additions & 2 deletions spec/motion/core/device_spec.rb
Expand Up @@ -42,10 +42,10 @@
end
end

describe '.sdk_version?' do
describe '.ios_version' do
it 'returns true' do
# exact value depends on system where specs run. 4.0 seems like a safe guess
BW::Device.sdk_version.should > '4.0'
BW::Device.ios_version.should > '4.0'
end
end

Expand Down

0 comments on commit 6608995

Please sign in to comment.