Module: Frank::Cucumber::LocationHelper
- Included in:
- FrankHelper
- Defined in:
- lib/frank-cucumber/location_helper.rb
Instance Method Summary collapse
-
#set_location(options = {}) ⇒ Object
Ask Frank to set the location.
Instance Method Details
#set_location(options = {}) ⇒ Object
Ask Frank to set the location.
10 11 12 13 14 15 16 17 |
# File 'lib/frank-cucumber/location_helper.rb', line 10 def set_location( = {}) res = frank_server.send_post( 'location', :latitude => [:latitude], :longitude => [:longitude] ) Frank::Cucumber::Gateway.evaluate_frankly_response( res, "setting the location to #{[:latitude]}, #{[:longitude]}" ) end |