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 CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gondola}
8
- s.version = "1.2.3"
8
+ s.version = "1.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matthew Perry"]
@@ -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 - 1
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
@@ -1,3 +1,3 @@
1
1
  module Gondola
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
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=>12,
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=>11,
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.3
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: 299527533
144
+ hash: 813569137
145
145
  segments:
146
146
  - 0
147
147
  version: "0"