osrm-backend/features/step_definitions/timestamp.rb

8 lines
266 B
Ruby
Raw Normal View History

2012-12-10 10:07:47 -05:00
Then /^I should get a valid timestamp/ do
step "I should get a response"
step "response should be valid JSON"
step "response should be well-formed"
2014-06-30 14:43:51 -04:00
expect(@json['timestamp'].class).to eq(String)
2014-10-20 09:14:53 -04:00
expect(@json['timestamp']).to eq("2000-01-01T00:00:00Z")
2012-12-10 10:07:47 -05:00
end