gondola 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/gondola.gemspec +1 -1
- data/lib/gondola/tester.rb +2 -2
- data/lib/gondola/version.rb +1 -1
- data/test/test_fail.rb +2 -2
- metadata +2 -2
data/gondola.gemspec
CHANGED
data/lib/gondola/tester.rb
CHANGED
@@ -63,7 +63,7 @@ module Gondola
|
|
63
63
|
|
64
64
|
def get_eval_cmd_num
|
65
65
|
ev = caller.keep_if { |c| c =~ /\(eval\)/ }[0]
|
66
|
-
ev.match(/:(\d+)/)[1].to_i
|
66
|
+
ev.match(/:(\d+)/)[1].to_i
|
67
67
|
end
|
68
68
|
|
69
69
|
# Add the current command to the error list
|
@@ -72,7 +72,7 @@ module Gondola
|
|
72
72
|
cmd_num = get_eval_cmd_num
|
73
73
|
@errors.push({
|
74
74
|
:cmd_num => cmd_num,
|
75
|
-
:command => @converter.commands[cmd_num],
|
75
|
+
:command => @converter.commands[cmd_num-1],
|
76
76
|
:error => desc
|
77
77
|
})
|
78
78
|
end
|
data/lib/gondola/version.rb
CHANGED
data/test/test_fail.rb
CHANGED
@@ -18,7 +18,7 @@ class TestFail < Test::Unit::TestCase
|
|
18
18
|
@runner.run({ :browsers => [{:os => "Windows 2003", :browser => "firefox", :browser_version => "3.6"}] })
|
19
19
|
end
|
20
20
|
expected = [{
|
21
|
-
:cmd_num=>
|
21
|
+
:cmd_num=>13,
|
22
22
|
:command=>{
|
23
23
|
:ruby=>"assert @sel.is_text_present(\"Producer FAIL\")\n"
|
24
24
|
},
|
@@ -40,7 +40,7 @@ class TestFail < Test::Unit::TestCase
|
|
40
40
|
@runner.run({ :browsers => [{:os => "Windows 2003", :browser => "firefox", :browser_version => "3.6"}] })
|
41
41
|
end
|
42
42
|
expected = [{
|
43
|
-
:cmd_num=>
|
43
|
+
:cmd_num=>12,
|
44
44
|
:command=>{
|
45
45
|
:selenese=>"assertTextPresent(\"Producer FAIL\")",
|
46
46
|
:ruby=>"assert @sel.is_text_present(\"Producer FAIL\")"
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: gondola
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.2.
|
5
|
+
version: 1.2.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Matthew Perry
|
@@ -141,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
141
|
requirements:
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
hash:
|
144
|
+
hash: 813569137
|
145
145
|
segments:
|
146
146
|
- 0
|
147
147
|
version: "0"
|