mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-28 20:55:36 +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|
|
Motion::Project::App.setup do |app|
|
||||||
app.name = 'test'
|
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.vendor_project('vendor/code', :static)
|
||||||
|
|
||||||
app.spec_files.insert(1, *FileList['../../lib/motion/util/version.rb', '../helpers/*.rb'])
|
app.spec_files.insert(1, *FileList['../../lib/motion/util/version.rb', '../helpers/*.rb'])
|
||||||
|
|||||||
@@ -45,4 +45,16 @@ describe "Boxed" do
|
|||||||
it ".opaque?" do
|
it ".opaque?" do
|
||||||
CGPoint.opaque?.should == false
|
CGPoint.opaque?.should == false
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user