Welcome to mirror list, hosted at ThFree Co, Russian Federation.

location_steps.rb « step_definitions « features - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0998d56a2da6e83b41bbc9636c4f498f784e4e7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

When /^I allow geolocation$/ do
  page.execute_script <<-JS
    OSM.Locator = function() {
      return {
        getAddress: function(callback) {
          callback("locator address", {latitude: 42.42424242, longitude: 3.14159});
        }
      }
    }
  JS
end