mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-01-12 22:51:55 +08:00
[test] add spec for RM-638
This commit is contained in:
@@ -11,7 +11,7 @@ ENV['output'] ||= 'pretty_spec_dox'
|
||||
|
||||
Motion::Project::App.setup do |app|
|
||||
app.name = 'test'
|
||||
app.frameworks += ['AddressBook', 'AddressBookUI', 'AudioToolbox', 'AVFoundation', 'CoreData', 'CoreMIDI', 'GameKit']
|
||||
app.frameworks += ['AddressBook', 'AddressBookUI', 'AudioToolbox', 'AVFoundation', 'CoreData', 'CoreMIDI', 'CoreLocation', 'GameKit']
|
||||
app.vendor_project('vendor/code', :static)
|
||||
|
||||
app.spec_files.insert(1, *FileList['../../lib/motion/util/version.rb', '../helpers/*.rb'])
|
||||
|
||||
@@ -45,4 +45,16 @@ describe "Boxed" do
|
||||
it ".opaque?" do
|
||||
CGPoint.opaque?.should == false
|
||||
end
|
||||
|
||||
# RM-638
|
||||
it "should be distinguished about CGSize/CLLocationCoordinate2D" do
|
||||
rect = CGRectMake(1, 2, 3, 4)
|
||||
rect.size.class.should == CGSize
|
||||
|
||||
latitude = 39.739188
|
||||
longitude = -104.985223
|
||||
location = CLLocation.alloc.initWithLatitude(latitude, longitude: longitude)
|
||||
coord = location.coordinate
|
||||
coord.class.should == CLLocationCoordinate2D
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user