[test] add spec for RM-638

This commit is contained in:
Watson
2014-11-11 01:39:31 +09:00
parent 01712d629f
commit d7e1361dde
2 changed files with 13 additions and 1 deletions

View File

@@ -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'])

View File

@@ -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