adapt tests to changed output, killed version and transactionId
This commit is contained in:
		
							parent
							
								
									d0b5929a9e
								
							
						
					
					
						commit
						4fc4e93ab5
					
				| @ -16,9 +16,7 @@ Then /^response should be valid JSON$/ do | |||||||
| end | end | ||||||
| 
 | 
 | ||||||
| Then /^response should be well-formed$/ do | Then /^response should be well-formed$/ do | ||||||
|   @json['version'].class.should == Float |  | ||||||
|   @json['status'].class.should == Fixnum |   @json['status'].class.should == Fixnum | ||||||
|   @json['transactionId'].class.should == String |  | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| Then /^response should be a well-formed route$/ do | Then /^response should be a well-formed route$/ do | ||||||
| @ -28,6 +26,7 @@ Then /^response should be a well-formed route$/ do | |||||||
|   @json['route_geometry'].class.should == String |   @json['route_geometry'].class.should == String | ||||||
|   @json['route_instructions'].class.should == Array |   @json['route_instructions'].class.should == Array | ||||||
|   @json['via_points'].class.should == Array |   @json['via_points'].class.should == Array | ||||||
|  |   @json['via_indices'].class.should == Array | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| When /^I preprocess data$/ do | When /^I preprocess data$/ do | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user