Sha256: f534e1c6bf2a0b57306c986f2dc54683b54d385f5521f601008f6fe3c395dc6c
Contents?: true
Size: 562 Bytes
Versions: 3
Compression:
Stored size: 562 Bytes
Contents
When /^I get driving directions$/ do @routes = @origin.drive_to(@destinations) end Then /^I should get a list of possible routes$/ do assert !@routes.found? end Then /^the first route should have (a\s)?"(.*)"$/ do |a, attribute| assert_not_nil @routes[0].send(attribute) end Then /^the first route should have a list of "([^\"]*)"$/ do |set| assert_instance_of Array, @routes[0].send(set) assert !@routes[0].send(set).empty? end Then /^I should get "([^\"]*)" routing error$/ do |error_qty| assert_equal error_qty.to_i, @routes.errors.size end
Version data entries
3 entries across 3 versions & 2 rubygems