qa_robusta 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +2 -0
- data/common/lib/gems/.svn/entries +1 -1
- data/common/lib/gems/cache/.svn/entries +1 -1
- data/common/lib/gems/doc/.svn/entries +1 -1
- data/common/lib/gems/gems/.svn/entries +1 -1
- data/common/lib/gems/installed/.svn/entries +1 -1
- data/common/lib/gems/installed/cache/.svn/entries +1 -1
- data/common/lib/gems/installed/doc/.svn/entries +1 -1
- data/common/lib/gems/installed/gems/.svn/entries +1 -1
- data/common/lib/gems/installed/specifications/.svn/entries +1 -1
- data/common/lib/gems/specifications/.svn/entries +1 -1
- data/lib/qa_robusta.rb +1 -1
- data/qa_observer/lib/watir.rb +3 -12
- metadata +1 -1
data/History.txt
CHANGED
data/lib/qa_robusta.rb
CHANGED
data/qa_observer/lib/watir.rb
CHANGED
@@ -1,18 +1,9 @@
|
|
1
1
|
module ImageWrap
|
2
2
|
def self.included(klass)
|
3
|
-
|
4
|
-
if existing_method == :click
|
5
|
-
wrap(klass, existing_method)
|
6
|
-
end
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.wrap(klass, method)
|
3
|
+
method = 'click'
|
11
4
|
klass.class_eval do
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
define_method(name) do |*args, &block|
|
5
|
+
original_method = instance_method(method)
|
6
|
+
define_method(method) do |*args, &block|
|
16
7
|
TestExtention.screen_shot($current_test_method, 'pre')
|
17
8
|
result = original_method.bind(self).call(*args, &block)
|
18
9
|
TestExtention.screen_shot($current_test_method, 'post')
|