Don't require that the latitude and longitude matches be so strict.

This commit is contained in:
Mark Rickert
2013-07-01 18:03:52 -04:00
parent 7d30236c05
commit a8e7889e1d
2 changed files with 5 additions and 5 deletions

View File

@@ -20,8 +20,8 @@ describe "ProMotion::TestMapScreen functionality" do
it "should have the map properly centered" do
center_coordinate = @map.center
center_coordinate.latitude.should == 35.090648651123
center_coordinate.longitude.should == -82.965972900391
center_coordinate.latitude.should.be.close 35.090648651123, 0.001
center_coordinate.longitude.should.be.close -82.965972900391, 0.001
end
it "should move the map center" do
@@ -29,8 +29,8 @@ describe "ProMotion::TestMapScreen functionality" do
wait 0.75 do
center_coordinate = @map.center
center_coordinate.latitude.should == 35.07496
center_coordinate.longitude.should == -82.95916
center_coordinate.latitude.should.be.close 35.07496, 0.001
center_coordinate.longitude.should.be.close -82.95916, 0.001
end
end

View File

@@ -24,7 +24,7 @@ describe "ProMotion::TestWebScreen functionality" do
end
it "should allow you to navigate to a website" do
@webscreen.set_content(NSURL.URLWithString("http://www.google.com"))
@webscreen.set_content(NSURL.URLWithString("https://www.google.com"))
wait_for_change @webscreen, 'load_finished' do
@webscreen.html.include?('<form action="/search"').should == true
end