-
Notifications
You must be signed in to change notification settings - Fork 369
/
operations.rb
41 lines (36 loc) · 1.2 KB
/
operations.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require 'calabash-cucumber/core'
require 'calabash-cucumber/tests_helpers'
require 'calabash-cucumber/keyboard_helpers'
require 'calabash-cucumber/keychain_helpers'
require 'calabash-cucumber/wait_helpers'
require 'calabash-cucumber/launcher'
require 'net/http'
require 'json'
require 'set'
require 'calabash-cucumber/version'
require 'calabash-cucumber/date_picker'
require 'calabash-cucumber/ipad_1x_2x'
module Calabash
module Cucumber
# A module for wrapping the public APIs of this gem.
module Operations
include Calabash::Cucumber::Core
include Calabash::Cucumber::TestsHelpers
include Calabash::Cucumber::WaitHelpers
include Calabash::Cucumber::KeyboardHelpers
include Calabash::Cucumber::KeychainHelpers
include Calabash::Cucumber::DatePicker
include Calabash::Cucumber::IPad
def self.extended(base)
if (class << base; included_modules.map(&:to_s).include?('Cucumber::RbSupport::RbWorld'); end)
unless instance_methods.include?(:embed)
original_embed = base.method(:embed)
define_method(:embed) do |*args|
original_embed.call(*args)
end
end
end
end
end
end
end